Calculators
Live

Profit Margin Calculator

Calculate gross profit and margin percentage.

Calculate gross profit and margin percentage.

Quick start: Enter the cost of the item (what you paid or what it costs to produce). → Enter the selling price or revenue. → Read the gross profit (revenue minus cost).

How to use Profit Margin Calculator

  1. 1

    Enter the cost of the item (what you paid or what it costs to produce).

  2. 2

    Enter the selling price or revenue.

  3. 3

    Read the gross profit (revenue minus cost).

  4. 4

    Read the margin percentage and the markup percentage side by side.

Real examples of Profit Margin Calculator in action

Find the margin
Before
Cost 80, sells for 100
After
Profit 20, margin 20%, markup 25%
Hit a target margin
Before
Cost 60, target 40% margin
After
Sell at 100
Popular tools

Try our most-used tools

Who is Profit Margin Calculator for?

Small business owners and ecommerce sellers pricing products

Freelancers and agencies setting rates that hit a target margin

Buyers and resellers checking whether a deal is worth it

Anyone who needs to explain margin versus markup clearly

Why use Profit Margin Calculator?

  • Shows gross profit, margin, and markup together so you do not confuse the two percentages.
  • Helps you set a selling price that hits a target margin instead of guessing.
  • Updates instantly, so you can test several price points quickly.
  • Works for products, services, or any cost-to-revenue calculation.
  • Runs in your browser — your cost and pricing data never leave your device.

Common use cases

  • Price a new product so it meets a target gross margin.
  • Check whether a discount still leaves an acceptable margin.
  • Compare the margin on several products to see which are most profitable.
  • Explain to a client or partner the difference between margin and markup on a quote.

How Profit Margin Calculator compares to alternatives

Honest comparison to other popular options — pick the right tool for the job.

ToolMain limitation
Spreadsheet formulaFlexible but you must build and verify the margin-vs-markup formulas yourself
Platform margin calculatorsTied to a specific store platform and often upsell
Profit Margin CalculatorFree, runs in your browser, no sign-up, no watermarks, no file-size limits beyond your device memory.

Limitations & things to know

  • Calculates gross margin only; it does not deduct overhead, taxes, or operating costs
  • Works on a single product or sale at a time, not a blended portfolio

About Profit Margin Calculator

Margin is the single number that decides whether a sale actually makes money, and getting it right starts with not confusing the two percentages people use. This free profit margin calculator takes a cost and a selling price and returns three things: the gross profit in currency, the profit margin as a percentage of revenue, and the markup as a percentage of cost. Gross profit margin is calculated as (revenue minus cost) divided by revenue, times 100. Markup is calculated as (revenue minus cost) divided by cost, times 100. They measure the same profit from different starting points, which is exactly why they are so easy to mix up: an item that costs 80 and sells for 100 has a 20% margin but a 25% markup. Quoting a 25% markup when a client expects a 25% margin can quietly erode your profit. Seeing both at once removes that ambiguity. The calculator is most useful when you work backward from a target. If you need a 40% margin and your cost is 60, the correct selling price is cost divided by (1 minus the margin), or 60 / 0.60 = 100, not simply cost plus 40%. Use the tool to test price points, check whether a planned discount still leaves an acceptable margin, and compare products to find the most profitable lines. Note that this is a gross margin figure: it does not subtract overhead, taxes, shipping, or operating expenses, so it shows the margin on the sale itself rather than net profit. All calculation runs locally in your browser, so your cost and pricing figures stay on your device.

Frequently asked questions

Margin is profit as a percentage of the selling price; markup is profit as a percentage of the cost. A product that costs 80 and sells for 100 has a 20% margin (20/100) but a 25% markup (20/80). They describe the same profit from two different bases, which is why people often mix them up.
Gross profit margin = (revenue - cost) / revenue x 100. So selling for 100 at a cost of 80 gives (100 - 80) / 100 = 20% margin.
Selling price = cost / (1 - target margin). To get a 40% margin on a cost of 60, divide 60 by 0.60 to get a 100 selling price. The calculator helps you check this quickly.
No. This is a gross margin calculation based on the cost and revenue you enter. Operating costs, taxes, and overhead are not deducted, so the result is your gross margin, not net profit.

Your files never leave your device

Every tool on Xevon Tools runs 100% in your browser. No uploads, no servers, no tracking. Free forever.

Learn more

Embed Profit Margin Calculator on your site

Add this tool to your own website, blog, or internal tool page with one line of code. Free to use, no attribution required (but appreciated).

<iframe src="https://www.xevontools.com/embed/profit-margin" width="100%" height="640" style="border:1px solid #e2e8f0;border-radius:12px;" title="Profit Margin Calculator — Xevon Tools"></iframe>
Share: