A little clarity, calculated.

culators

Finance / Margin

Margin Calculator

Compute gross profit and gross margin from the cost and selling price. Margin uses selling price as its denominator; markup uses cost.

Your inputs

Make it your own
Calculator settings
USD

USD

Your result
40
%
Gross margin
A part of the whole · 100% ring40%
A part of the whole · 100% ring
Gross profit
40
Gross margin
40
Markup on cost
66.67

Example inputs shown. Adjust them to explore.

A familiar situation

Before setting a product price, compare its selling price with unit cost to see the gross margin as a share of revenue. Margin and markup use different denominators, so use the one your pricing decision requires.

How to use this calculator

  1. Enter cost, selling price.
  2. Select Calculate to see the answer and its breakdown.
  3. Keep a scenario, change an input and compare the results.

Use consistent units and check the assumptions below before applying the result.

How margin is calculated

Gross margin divides profit by the selling price. The separate markup detail divides the same profit by cost, so the two percentages answer different pricing questions. Formula: Gross margin = (selling price − cost) ÷ selling price. Use the displayed details to inspect the intermediate amounts and replace example assumptions with terms from your own quote or records.

Gross margin = (selling price − cost) ÷ selling price.
A worked example

A $60 cost and $100 sale price produce $40 gross profit and a 40% margin.

Assumptions & useful context

The result depends on the values you enter and the method described above. Displayed numbers may be rounded; calculations use the unrounded values. Check that this model matches your situation before relying on it.

Financial projections use your assumptions. Actual returns, lender terms, fees and tax rules can differ; these results do not guarantee a future outcome.

Frequently asked questions

Margin Calculator: what does the result include?

Gross profit is divided by selling price. This differs from markup, which divides profit by cost.

Margin Calculator: which assumptions matter most?

No. It subtracts only the entered cost from the selling price, before overhead, tax, shipping or other expenses.

Find a calculator