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.

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.
