Gross Margin Calculator
Find the gross margin on a product from its price and unit cost, and the price you'd need to hit a target margin.
Find the gross margin on a product from its price and unit cost, and the price you'd need to hit a target margin.
Results
About This Calculator
Enter a product's selling price, what it costs you to make or buy, and the margin you'd like. Gross margin = (price − cost) ÷ price.
Example
Example: a $50 product costing $30 has a 40% gross margin ($20 per unit, a 66.67% markup). For a 50% margin you'd need to charge $60.
Assumptions
For company-wide totals, use the Gross Profit Calculator. This tool provides general estimates for informational purposes only and isn't financial, accounting, tax or legal advice. Results depend on the figures you enter — check them against your own accounts, or ask an accountant or financial adviser before making business decisions.
Frequently Asked Questions
What's a good gross margin?
It varies hugely by industry — software can exceed 70%, while grocery and retail often run 20–40%. Compare with businesses like yours.
Related Calculators
About the Author

Professional SEO, Digital Marketer Specialist
I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist
View full profile