How to use this calculator
- Enter sales revenue and the other values for your scenario.
- Check the units, rate convention, and assumptions below; replace every example with your own figures.
- Select Calculate, then compare the result and breakdown. Reset restores the example.
The formula
Gross profit is sales revenue less the entered cost. Margin divides that difference by revenue. The optional equivalent markup divides it by cost when cost is positive.
A worked example
Selling for 100 with a cost of 60 produces 40 profit and a 40% margin. Markup on cost is 40/60 × 100 = 66.6667%.
How to interpret your result
A negative margin indicates a loss before any additional costs excluded from your input. Use consistent totals for the same product, order, or period.
Assumptions and limitations
Revenue is positive; cost is nonnegative. Inputs cover the same scope and currency.
This is gross margin, not necessarily operating or net margin. Shipping, returns, overhead, tax, and other costs must be included deliberately if relevant. Zero revenue has undefined margin.
For informational purposes only. This calculator does not provide financial, tax, legal, or investment advice. Results are estimates.