How to use this calculator
- Enter your own values in the labeled fields. Check the units and assumptions before comparing results. Only the fields needed for your selected calculation mode are shown.
- Your answer updates automatically. Review the calculation steps to see exactly how it was calculated.
- Copy, share, save, or download your result. Saved inputs stay on this device.
How the calculation works
Gross margin uses revenue as the denominator. It shows what share of sales remains after the costs you enter. It is not the same as markup, which divides by cost. Use matching periods and comparable cost definitions, and remember that gross profit is not net profit after all business expenses.
A worked example
A $100 sale with $60 in direct costs earns $40 gross profit and a 40% gross margin.
Reading your result
Use the main result together with its units and supporting figures. Display values are rounded; calculations keep their underlying precision. A change in inputs or assumptions can change the answer. Compare the step-by-step working with your intended use before relying on an estimate.
Frequently asked questions
Is margin the same as markup?
No. Margin divides profit by revenue; markup divides it by cost.
Can the margin be negative?
Yes. Selling below cost produces a gross loss.
Sources & methodology
This calculator uses the mathematical identity and assumptions stated above. No current rates, prices, or external data are loaded. Conversion tools use international unit definitions.
Formula review: October 24, 2026. Read our methodology.