Finance · Finance

Profit Margin Calculator

Calculate gross profit, gross margin and markup from revenue and cost.

Live resultFormula shownStep-by-stepNo sign-up
Inputs

Profit Margin Calculator

Live
Updates as you type. Nothing leaves your browser.
ResultLive
Gross margin—
Explain my calculation

Each substitution is shown so you can check the arithmetic.

Enter values to see the step-by-step working.

Profit Margin formula

Formula
Margin % = ((Revenue − Cost) ÷ Revenue) × 100

The live calculator applies this equation with full precision and rounds only for display.

What the variables mean

Revenue = sales; Cost = cost of goods sold; profit = revenue − cost.

Worked example

Example

$100,000 of revenue against $60,000 of cost gives $40,000 gross profit, a 40% margin and a 66.7% markup.

How to interpret the result

Margin compares profit with revenue, while markup compares profit with cost. The same profit therefore has a lower percentage margin than markup.

Common mistakes

  • Rates must match the compounding period. A 6% annual rate compounded monthly is 0.5% per month, not 6% per month. Keep cash-flow signs consistent (outflows negative, inflows positive) and remember that all DCF models are only as good as their assumptions.

Frequently asked questions

What formula does this calculator use?
The calculator uses Margin % = ((Revenue − Cost) ÷ Revenue) × 100. The variables and units are listed on this page, and the live result shows the substituted working.
Are the results rounded?
Yes. Intermediate calculations use full precision, and the displayed result is rounded for readability. Small differences in the last digit can appear depending on the inputs.
Is this calculator free to use?
Yes. FormulasWorld calculators are free, require no account, and run in your browser. The formula and method are shown so you can verify the result independently.
Sources and standards

The formula, classification ranges and assumptions on this page follow the definitions and guidance of the bodies below.

How these are used: sources and standards.

Reviewed November 2026 · This tool is for education and estimation. See the disclaimer and methodology.

FormulasWorld

Need the theory behind profit margin?

Read the formula entry for the derivation, units and related equations.