What is gross margin?
(Selling price − Cost) ÷ Selling price × 100.
Pricing and gross profit math
Calculate gross margin, markup, selling price, cost, and gross profit from the values you know. The formula stays visible with every valid result.
Private by design. Entered values and results stay in this browser page. The calculator does not upload your pricing data or maintain a calculation history.
Calculate margin and markup from cost and selling price.
Find the selling price for a target gross margin.
Find selling price and margin from cost and markup.
Find cost and markup from selling price and margin.
Solve from cost and gross profit.
Solve from selling price and gross profit.
Solve from selling price and markup.
Solve the monetary scale from gross profit and margin.
Solve the monetary scale from gross profit and markup.
Convert margin and markup without inventing a monetary amount.
Quantity scales revenue, cost, and gross profit. It does not change margin or markup.
(Selling price − Cost) ÷ Selling price × 100.
(Selling price − Cost) ÷ Cost × 100.
Cost 80 and price 100 gives 20% margin and 25% markup.
The app recomputes actual margin after target-price rounding.
Zero selling price makes margin undefined; zero cost makes markup undefined. Infinity is never substituted.
The app uses the Cost you enter and does not automatically add tax, shipping, fees, labor, overhead, advertising, or returns.
Read the Margin vs Markup guide.