Gross Margin Calculator
Calculate revenue, profit, margin and markup from a cost plus any one of selling price, margin percent or markup percent — with both formulas shown.
Processed entirely in your browser — nothing you enter here is ever uploaded.
Result
About this tool
This page opens the calculator with “margin %” already selected — enter your cost and the gross margin you are aiming for, and it returns the selling price that actually delivers that margin, plus the profit and the equivalent markup.
Gross margin measures profit against revenue: margin = profit ÷ revenue × 100, so the required price is cost ÷ (1 − margin). Worked example: a unit costs 50 and you target a 20% margin — the price must be 50 ÷ 0.80 = 62.50, the profit is 12.50, and the markup on cost works out to 12.50 ÷ 50 = 25%.
The classic mistake is multiplying cost by (1 + margin) instead: 50 × 1.20 = 60 looks right but yields only a 16.67% margin, because that formula computes markup, whose base is cost, not revenue. This page always shows margin and markup side by side, so you can see exactly which percentage you are applying.
Example. Cost 50 with a known selling price of 80 returns profit 30, margin 37.5 percent, and markup 60 percent.
Limit. A margin of 100 percent or more is rejected, because that input would not produce a positive revenue.