Skip to content
Cash Calculator Hubby cashcalchub

Margin Calculator

Calculate gross margin, markup, cost, price and profit from any two values.

Change any value: results update instantly
Results
Gross margin40%
Markup66.67%
Cost$60.00
Selling price$100.00
Profit per unit$40.00
Total revenue$100.00
Total profit$40.00

Margin = (price − cost) ÷ price. Markup = (price − cost) ÷ cost.

Please do not make financial decisions based on these results.

What is the Margin Calculator?

The margin calculator finds gross margin, markup, cost, price and profit from any two of those values.

Pricing and profit

Margin and markup are often confused. Margin is profit as a share of the selling price, markup is profit as a share of cost. Use the ROI and profit margin calculator for return and margin.

How to use the Margin Calculator

  1. Fill in the fields. You will need Cost per unit ($), Selling price per unit ($), Quantity. Use real figures from your own records where you can. Fields marked optional can stay at zero.
  2. Choose your options. I know… change how the result is worked out, and the form updates to match your choice.
  3. Read the result. The highlighted box gives the Gross margin, and the cards below show Markup, Cost, Selling price. Tables and charts break it down further.
  4. Test other scenarios. Results update as you type. Change one value at a time to see what drives the answer, and press Reset to go back to the defaults.

Formula and how it works

Margin = (price - cost) / price. Markup = (price - cost) / cost.

Example with real numbers

Here is the Margin Calculator using the default values shown in the calculator above:

Inputs

I know…Cost and selling price
Cost per unit ($)60
Selling price per unit ($)100
Quantity1

Results

Gross margin40%
Markup66.67%
Cost$60.00
Selling price$100.00
Profit per unit$40.00
Total revenue$100.00
Total profit$40.00

With these inputs the calculator returns Gross margin: 40%. Change any value in the calculator to see how the result moves.

What the results tell you

The results panel of the Margin Calculator reports Gross margin, markup, cost, selling price, profit per unit, total revenue and total profit. Compare these figures while changing one input at a time, and use the related calculators below to look at the same situation from another angle.

Tips for better results

Tip: A 50% markup is a 33.3% margin. Do not mix them up when pricing.

Method and limits. This calculator applies the formula in the section above to your inputs, in your browser; nothing you enter is stored on our servers. The result is only as accurate as the numbers you enter and the formula shown above. It is for information, not financial, tax or legal advice.

Frequently asked questions

Margin vs markup?

Margin is profit as a share of price; markup is profit as a share of cost.

How do I convert markup to margin?

Margin = markup / (1 + markup). For a 25% markup, margin is 0.25 / 1.25 = 20%.

Can I rely on these for tax filing?

No. Use them for estimates and quick checks. For filings, use official forms and guidance or a professional.

Are the results exact?

They follow the stated formulas exactly. Real-world fees, taxes and rounding may differ slightly.

Are the results guaranteed?

No. Results depend entirely on the numbers you enter and the formulas shown on this page. Please do not make financial decisions based on them alone; confirm important figures with a licensed professional.

All Business & Everyday Tools calculators →

Disclaimer: Please do not make financial decisions based on these results. These calculators are for general information only. Talk to a licensed professional before making any financial, tax or legal decision. Read the full disclaimer.
HomeAll ToolsMortgage & Real EstateAutoInvestmentRetirementTax & SalaryBudget & PlanningLoans & DebtCurrency & InflationBusiness PlanningMarketing & SaaS MetricsHR & WorkforceStocks & Equity AnalysisBonds & Credit RatiosOptions & DerivativesAccounting & MicroeconomicsSales, Discounts & PricingMacroeconomicsUK FinanceIndia & Pakistan FinanceBusiness & Everyday Tools
Privacy PolicyDisclaimerAboutContact
© 2026 Cash Calculator Hub. Please do not make financial decisions based on these results.