Skip to content
Calcemitool
Business

Profit Margin Calculator

Profit margin is profit as a percentage of selling price. Enter your cost and price to see your margin, or your cost and target margin to find the price you need to charge.

Enter your details

Results update live as you type.

Example: $25

Example: 40%

Nothing is stored — your inputs stay in the page link so you can share or bookmark this exact result.

Step-by-step calculation

  1. 1

    Divide cost by (1 − margin)

    $25.00 ÷ (1 − 40%) = $41.67

  2. 2

    Profit

    $41.67 − $25.00 = $16.67

The formula

Selling Price = Cost ÷ (1 − Target Margin)

Because margin is measured against the selling price rather than cost, you divide by (1 minus the margin) instead of multiplying, unlike a markup calculation.

Cost
What the unit costs you
Target Margin
Desired profit as a percentage of the selling price

Pricing for a 40% margin

With a $25 cost, $25 ÷ (1 − 0.40) = $41.67. Selling at $41.67 gives $16.67 profit, exactly 40% of the selling price.

Frequently asked questions

Why isn't a 40% margin the same as a 40% markup?

Margin is measured against selling price, markup against cost. A 40% margin needs a higher markup, about 66.7% in this example.

What's a healthy profit margin?

It varies hugely by industry — retail often runs 20-50%, software can exceed 80%, while grocery margins can be under 5%.

Can margin ever be 100%?

No — a 100% margin would mean zero cost, which isn't realistic, so the price would need to be infinite.

Required Selling Price

$41.67

To hit a 40% margin on a $25.00 cost, charge $41.67.

Profit Per Unit
$16.67
Equivalent Markup
66.67%

Headline result: Required Selling Price — updates live as you change the inputs.

Browse all calculators →

Complete guide6 min read

Profit Margin: the complete guide

Everything behind the numbers above — what each input means, the formula that produces the result, where the calculation is used, and the mistakes that quietly ruin it.

Why use the Profit Margin

Most people can do this calculation on paper, but doing it repeatedly — and correctly — is where the effort goes. The Profit Margin is built for founders, operators, finance leads and freelancers, and it answers one question well: whether pricing, staffing or a project clears its own costs. Instead of a bare number it shows the inputs it used, the formula it applied and every intermediate step, so you can check the reasoning rather than trust it blindly.

The calculation runs entirely in your browser and updates the moment you change a value. Nothing is uploaded, nothing is stored on a server, and your inputs live in the page address so you can bookmark a scenario or send it to someone else exactly as you left it. That makes it practical to model several versions of the same decision side by side.

How this calculator works

Because margin is measured against the selling price rather than cost, you divide by (1 minus the margin) instead of multiplying, unlike a markup calculation. In practice you supply 2 core values, and the calculator resolves the formula and its supporting figures in a single pass.

  1. 1

    Enter your figures

    Fill in cost Per Unit and target Profit Margin. Each field carries an example so you can see the expected scale of the number.

  2. 2

    The formula is applied

    Your values are substituted into Selling Price = Cost ÷ (1 − Target Margin) and evaluated immediately — there is no submit step and no page reload.

  3. 3

    Results are broken down

    The headline figure appears first, followed by the supporting numbers, any charts or schedules, and the step-by-step arithmetic that produced them.

  4. 4

    Adjust and compare

    Change one input at a time to see its individual effect. The page link updates with your values, so you can keep two scenarios open in separate tabs.

Every input explained

Accurate inputs matter more than the formula itself. Here is what each field means, and what to enter when you are unsure.

  • Cost Per Unit

    What it costs you to produce or buy one unit. Enter the amount in whole units of your currency, without separators. Example: $25

  • Target Profit Margin

    The profit margin you want as a percentage of the selling price. Enter this as a percentage — for example 7.5 rather than 0.075. Example: 40%

The formula behind the result

The calculator evaluates Selling Price = Cost ÷ (1 − Target Margin). Because margin is measured against the selling price rather than cost, you divide by (1 minus the margin) instead of multiplying, unlike a markup calculation.

Understanding the terms is what lets you spot an implausible answer before you act on it — if a result surprises you, one of the terms below is usually carrying an input in the wrong unit or scale.

  • Cost

    What the unit costs you

  • Target Margin

    Desired profit as a percentage of the selling price

Where people use this

Business calculations show up in more places than most people expect. These are the situations where the Profit Margin earns its keep.

  • Pricing a product or service so it covers fixed and variable costs

  • Finding the break-even volume before committing to a launch

  • Budgeting the true cost of hiring beyond headline salary

  • Building a defensible forecast for a lender, board or investor

Advantages of calculating it this way

  • The working is visible

    Every intermediate step is shown, so the result can be audited, reproduced by hand, or explained to somebody else who needs convincing.

  • Instant scenario testing

    Because results recalculate as you type, comparing five variations costs the same effort as calculating one.

  • No spreadsheet errors

    The formula is fixed and tested. There is no stray cell reference, no dragged-down range that stopped one row short, and no silent overwrite.

  • Private by construction

    The maths runs in your browser. Nothing you type is transmitted, logged or retained anywhere.

  • Shareable results

    Your inputs live in the page link, so a scenario can be bookmarked, printed or sent to a partner, adviser or colleague unchanged.

Limitations worth knowing

Business models carry costs that resist tidy formulas — churn, seasonality and one-off events — so pair the result with your own historical data.

A calculator models the arithmetic of a decision, not the decision itself. It cannot see your risk tolerance, your circumstances or the small print of a specific agreement — treat the output as one strong input into a judgement you still make yourself.

Common mistakes to avoid

  • Mixing time periods

    Annual rates with monthly amounts, or weekly figures with yearly totals, is the single most common source of a wildly wrong answer. Confirm that every input uses the period the field asks for.

  • Confusing percentages and decimals

    Percentage fields expect 7.5, not 0.075. Entering the decimal form understates the result by a factor of one hundred.

  • Leaving defaults in place

    Default values exist to demonstrate the calculator, not to describe your situation. Replace every one of them before reading the result seriously.

  • Ignoring the optional fields

    Every field here affects the outcome, so an approximate entry produces an approximate answer. Use real figures wherever you have them.

  • Reading one scenario as the answer

    A single calculation is a snapshot. Run an optimistic and a pessimistic version before committing to anything that matters.

Tips for a more accurate result

  • Start from source documents

    Take figures from the statement, contract, payslip or listing rather than from memory. Remembered numbers are almost always rounded in the flattering direction.

  • Change one variable at a time

    Isolating a single input tells you how sensitive the result is to it — which is usually more useful than the result itself.

  • Rerun the model with a pessimistic case as well as an expect

    Rerun the model with a pessimistic case as well as an expected one; the gap between them is your real margin of safety.

  • Save the scenarios that matter

    Bookmark or share the page link once a scenario looks right. It restores every input exactly, which makes revisiting a decision months later straightforward.

  • Cross-check anything consequential

    For decisions with real financial, medical or legal weight, confirm the figure with a qualified professional who can see your full circumstances.

Conclusion

The profit margin calculator turns a fiddly, error-prone calculation into something you can run in seconds and repeat as often as your situation changes. Used properly — real figures, consistent periods, more than one scenario — it gives you whether pricing, staffing or a project clears its own costs with the working laid out in full.

Bookmark this page for the next time the question comes up, or explore the related business calculators below to model the rest of the decision. Everything on Calcemitool is free, requires no account, and works the same way on every device. This page also covers profit margin calculator, margin calculator and gross margin calculator.

Popular next steps — each one is free, instant and explains the maths.

Didn't find what you needed?

135+ free calculators across 13 categories — every one shows its formula and working.

Browse all calculators