Skip to content
Finance

Profit Margin Calculator

Calculate profit margin, markup, and reverse-engineer costs.

profitmarginmarkuprevenuebusiness
Loading tool…

About the Profit Margin Calculator

The Profit Margin Calculator works in two directions, which is what makes it more than a glorified division. In Forward mode you enter revenue and cost, and it returns profit, margin percentage, and markup percentage — the two percentages people constantly confuse. Margin measures profit against revenue, while markup measures the same profit against cost, so $300 of profit on a $1,000 sale is a 30% margin but a 42.9% markup, and mixing them up in pricing discussions causes real pricing errors. In Reverse mode the calculator flips the question: give it the revenue and a desired margin, and it tells you the maximum cost you can afford, plus the implied profit and markup. That is the mode for buyers, manufacturers, and anyone who must back a pricing decision out of a target. Both modes update live, show the formulas with your own numbers substituted, and include a reset button that restores the defaults — small conveniences that keep a quick pricing conversation from becoming a spreadsheet session.

Profit Margin Calculator examples

Input
Forward mode: revenue $1,000, cost $700
Output
Profit $300.00, margin 30.00%, markup 42.86%
Note: Profit = 1,000 - 700 = $300. Margin = 300 / 1,000 x 100 = 30.00%. Markup = 300 / 700 x 100 = 42.8571%, displayed as 42.86%.
Input
Forward mode: revenue $250, cost $200
Output
Profit $50.00, margin 20.00%, markup 25.00%
Note: Profit = 250 - 200 = $50. Margin = 50 / 250 x 100 = 20.00%. Markup = 50 / 200 x 100 = 25.00%. The classic retail example: a 25% markup produces only a 20% margin.
Input
Reverse mode: revenue $5,000, desired margin 25%
Output
Required cost $3,750.00, implied profit $1,250.00, implied markup 33.33%
Note: Cost = 5,000 x (1 - 25/100) = $3,750. Profit = 5,000 - 3,750 = $1,250. Markup = 1,250 / 3,750 x 100 = 33.3333%.

How to use the Profit Margin Calculator

  1. 1

    Choose a mode with the Forward / Reverse tabs at the top of the tool.

  2. 2

    In Forward mode, enter Revenue and Cost, then read Profit, Margin, and Markup.

  3. 3

    In Reverse mode, enter Revenue and the Desired margin percentage, then read Required cost, Implied profit, and Implied markup.

  4. 4

    Check the Formulas card below the stats to see each equation resolved with your numbers.

  5. 5

    Click Reset to defaults to restore the worked example values at any time.

Common use cases

  • Pricing a wholesale order so the retail markup on your goods lands at the margin you promised investors.
  • Working backwards from a client's $5,000 budget to the maximum production cost at 25% margin.
  • Settling a margin-versus-markup argument between a sales team and an accountant.
  • Checking whether a 50% discount promotion still clears your minimum margin.
  • Setting a floor price for freelance work based on the margin you need after costs.
  • Comparing the true profitability of two products with different costs but the same selling price.

Best practices

  • Never state a percentage without saying whether it is margin or markup — the tool gives you both so you can quote the right one.
  • Use Reverse mode when a target margin is fixed; guessing costs and iterating in Forward mode wastes time.
  • Remember margin is capped at 100% while markup is unbounded, which is why the two numbers drift apart as profitability rises.
  • Keep revenue above zero — the calculator requires a positive revenue to compute percentages, and dividing by zero is meaningless.
  • Double-check that cost includes everything: materials, labour, fees, and delivery, or your margin will be flattering but wrong.
  • When costs change, re-run both directions to see whether the margin target is still achievable at the same price.

Tips

  • Flip between Forward and Reverse without retyping — the tabs keep both sets of inputs in memory.
  • Memorize one anchor pair: 20% margin equals 25% markup, a fast way to catch pricing mistakes in meetings.
  • Test a sale price 10% lower in Forward mode to see how badly it bruises the margin.
  • Use the reset button before a new session so stale numbers never sneak into a decision.

Frequently asked questions

Both divide the same profit, but margin divides by revenue and markup divides by cost, and cost is smaller whenever there is any profit. $300 of profit on a $1,000 sale is 30% of revenue but 42.86% of the $700 cost. The gap widens as margins rise: a 50% margin corresponds to a 100% markup, because profit then equals cost.

Reverse mode answers how much you can afford to spend. Given the revenue and a target margin, it computes the maximum cost that achieves that margin, plus the implied profit and markup. Sellers use it to negotiate with suppliers, and buyers use it to test whether a quoted price fits the margin their business needs.

No. Margin is profit divided by revenue, and profit cannot exceed revenue when costs are non-negative, so the highest possible margin is 100%, which would require zero cost. Markup, in contrast, has no upper bound: a product bought for $1 and sold for $10 shows a 90% margin but a 900% markup.

Yes, if you define cost as the direct cost of delivering the service, such as contractor fees, materials, and software subscriptions. Overheads like rent and admin are usually excluded from this simple two-number view, so treat the resulting margin as a contribution margin rather than a fully loaded net margin.

In Forward mode a zero cost gives a margin of 100%, and markup is shown as a dash because dividing profit by zero is undefined. The tool handles this gracefully, but in practice cost is rarely exactly zero — even digital products have hosting, support, and marketing costs you should include to keep the margin honest.

Two routes. Forward mode lets you test a candidate price against known cost and see the margin it produces. Reverse mode is quicker when the margin is the target: enter the price you plan to charge and the margin you want, and read the maximum cost you can afford — then negotiate your costs down to it.

Explore more finance tools

Browse the full collection of finance tools on the hub, or jump back to all categories.

Related tools

Did this tool help?

Anonymous — one tap, no sign-up.