Margin Calculator United States

This margin calculator finds gross profit margin from cost and price, converts margin to markup, and gives the price needed to hit a target margin.

Margin Calculator United States
US$
US$
%
Gross margin —
Gross profit —
Equivalent markup —
Price for desired margin —
Profit at that price —

We always strive to use the latest data for every variable so our results and reports are as accurate as possible. Even so, errors are possible — you should not rely on this tool or its report alone, and we accept no liability for any decision made based on it.

What it does

The Margin Calculator finds your gross profit margin from a cost and selling price, converts it to the equivalent markup, and shows the price needed to hit a target margin.

Data sources & parameters

This calculator uses standard financial formulas and runs entirely in your browser. It needs no external rate data — your result is computed only from the values you enter above.

We always strive to use the latest data for every variable so our results and reports are as accurate as possible. Even so, errors are possible — you should not rely on this tool or its report alone, and we accept no liability for any decision made based on it.

The formula

Gross margin = (price − cost) ÷ price; required price = cost ÷ (1 − desired margin)

How it works

It subtracts cost from price to find gross profit, divides that by price for the margin, divides it by cost for the markup, and solves cost ÷ (1 − target margin) for the price you would need.

Where it is used

  • Setting a selling price from a target margin
  • Converting between margin and markup
  • Checking the profit on a product or order

Worked example

At a $60.00 cost and $100.00 price, gross margin is … with … profit; to reach the desired margin you would price at ….

What the margin calculator does

Enter a cost and a selling price, and the calculator reports the gross profit in dollars, the gross margin as a percentage of the price, the equivalent markup measured against cost and the price you would need to reach a margin you choose. That covers the two usual pricing questions: how profitable is this sale, and what should I charge.

A dollar profit alone does not tell you whether a sale is efficient. Margin puts the profit in the context of the price, so you can compare products, orders and businesses of different sizes.

Margin versus markup

Margin and markup are often confused, and the mistake can be costly. Both start from gross profit, the selling price minus the cost, but divide it by different things:

  • Gross margin = (price − cost) ÷ price, profit as a share of the selling price.
  • Markup = (price − cost) ÷ cost, profit as a share of the cost.

A product that costs $60 and sells for $100 has a $40 gross profit. That is a 40% margin against the $100 price and a 66.7% markup against the $60 cost. The calculator shows both, so you can tell which one a supplier, spreadsheet or colleague is quoting.

How the calculation works

  • It subtracts cost from price to find the gross profit.
  • It divides gross profit by price to find the gross margin.
  • It divides gross profit by cost to find the equivalent markup.
  • It divides cost by one minus your target margin to find the price that would achieve it.

The math is the same in any country and at any sales volume.

Pricing from a target margin

A common error is adding the target percentage to the cost, which produces a markup. Add 50% to a $60 cost and you get $90, which is only a 33% margin.

The correct method is to divide the cost by one minus the target margin. For a 50% margin, 60 ÷ (1 − 0.50) is $120, and the $60 profit is exactly half of that price. Enter a target margin and the calculator returns the required price and the profit at that price.

Why margin matters for a business

A thin margin leaves little room to absorb rising costs, discounts, returns or unexpected expenses, while a healthy one leaves money to reinvest. Comparing margins across a product line often shows which items carry the business and which barely break even once the full cost is counted.

Break-even analysis, cash flow planning and how much you can spend to win a customer all depend on the margin each sale contributes.

What you need to enter

  • The cost of the product, ideally the full landed cost including freight and direct handling.
  • The selling price you charge or plan to charge.
  • Optionally, a target margin if you want the calculator to suggest a price.

Leaving freight, packaging or transaction fees out of the cost makes the margin look better than it is.

When to use this tool

  • Set a selling price that hits a specific margin.
  • Convert a supplier's markup into the margin you will earn.
  • Check the profit on a single order or a whole product line.
  • Check a price before quoting it to a customer.

Gross margin covers only the direct cost of a product. Operating expenses, taxes and overhead still come out of gross profit, so a strong gross margin does not guarantee a profitable business. Review your margins on a regular schedule and whenever supplier costs, shipping rates or transaction fees change, since a margin that was comfortable last quarter can shrink as costs rise.

This is general information only and not financial advice.

About This Margin Calculator

Use this margin calculator to get an instant estimate based on the figures you enter. Adjust the inputs above to match your situation, or browse all our calculators to plan your next step.

Frequently asked questions

What does this margin calculator do?
It calculates your gross profit margin from a cost and a selling price, shows the dollar profit, converts the margin into the equivalent markup and works out the price you would need to reach a target margin.
What is the difference between margin and markup?
Margin is profit as a percentage of the selling price; markup is profit as a percentage of cost. A 40% margin and a 66.7% markup describe the same cost and price measured against different bases.
How do I set a price for a target margin?
Divide the cost by one minus the target margin as a decimal. For a 50% margin on a $60 item, that is 60 ÷ 0.5, or $120. Enter your target margin and the calculator does this for you.
Why can't the margin reach 100%?
Margin is profit divided by price, and profit can never exceed the price, so margin approaches 100% without reaching it. A 100% margin would need a cost of zero, which is why the target is capped just below 100%.
Is this gross margin or net margin?
Gross margin, based on the direct cost of a product. Net margin also subtracts operating expenses, taxes and overhead, so it will be lower than the gross margin shown here.
Is my data private?
Yes. The calculation runs entirely in your browser, so nothing you enter is uploaded, stored, or shared.

About the author

Taha Kheirandish

Written and reviewed by

Taha Kheirandish

Economics student and independent researcher

Taha Kheirandish reads tax codes the way other people read maps — to find out where a system actually leads, not where it claims to go.

He is an economics student, and his work here is comparative by design. A pension deferral bonus in Quebec, a commuting allowance in Germany, a rent-increase ceiling in the Netherlands: each is a decision a government made about how money should move, and each reads differently once you set it beside eight others. He builds and checks these calculators across nine markets from primary sources — the regulation rather than a summary of it, the ministry’s own circular rather than a news item quoting it.

That is the editorial standard of the site as well as his habit. Every rate, threshold and bracket here carries the document it was read from and the date it takes effect, and gets re-checked when the law moves rather than when someone happens to notice.

He is a researcher, not a licensed adviser, and nothing on this site is personal financial advice. It is arithmetic done carefully with its sources shown — so that you can check it, and take it to someone who is.

Leave a Reply

Your email address will not be published. Required fields are marked *