calculatorsFree

Margin Calculator

Solve pricing with margin and markup.

Free — no signupYour input stays on this device for this operation.Learn how to use Margin Calculator →
Margin Calculator illustration

Gross margin divides profit by selling price; markup divides profit by cost. Markup is undefined for zero cost.

Calculation resultLive
Gross profit
40.00
Gross margin percent
40.00
Markup percent
66.67

01 Overview

About Margin Calculator

Margin Calculator solves pricing problems from the margin or markup side: given your cost and the margin or markup you want, it works out the selling price that delivers it — the pricing-first companion to the Profit Calculator, which checks a price you already have. The classic trap is adding a 30% markup and assuming that means a 30% margin — it does not, because markup is measured on cost while margin is measured on price (on a $100 cost with a 30% markup, the price is $130 and the margin is about 23%). The results are estimates for planning based on the figures you enter, and they are not financial advice — sense-check the calculated price against your market. It runs in your browser; your figures never leave your device.

Adjust the options and review your result before downloading.
See our privacy policy for input handling and usage information.
Use a modern browser. Availability and performance depend on your device and the selected tool.

02 Workflow

How to use Margin Calculator

  1. 1
    Enter the costAdd the cost of the item or service, and check that it includes the real expenses behind the item.
  2. 2
    Choose margin or markupPick whether you are working with a target margin or a target markup.
  3. 3
    Enter the target percentageAdd the margin or markup percentage you want to achieve, then calculate.
  4. 4
    Read and adjustRead the selling price together with the resulting margin and markup figures, and adjust the target and recalculate until the price fits both your profit goal and your market.

03 Good to know

Frequently Asked Questions

How is this different from the Profit Calculator?

The Profit Calculator starts with a cost and a selling price and reports the profit, margin and markup that result. The Margin Calculator works backwards: it starts with a cost and a desired margin or markup and calculates the selling price you need to charge.

Why is a 30% markup not a 30% margin?

Markup is profit divided by cost, while margin is profit divided by selling price. On a $100 cost with a 30% markup, the price is $130 and the margin is $30 divided by $130, about 23% — not 30%.

What cost should I enter?

The full cost of supplying the item or service: purchase or production cost plus a fair share of fees, shipping and overheads. An understated cost gives a price that looks profitable but is not.

How do I work out the selling price from a target margin?

Divide the cost by one minus the margin. For a 100 cost and a 30% margin, the price is 100 ÷ (1 − 0.30) = 142.86. That is exactly what this tool does when you enter a cost and a margin — the price it returns is the one that delivers that margin on every sale.

Can a margin be 100%?

No — margin is profit as a share of the selling price, and the price always includes the cost, so the margin is always below 100%. A 100% margin would mean the item cost nothing. If a supplier promises a 100% margin, they are confusing margin with markup, which can exceed 100%.

What is the difference between gross margin and net margin?

Gross margin uses only the direct cost of the item; net margin subtracts everything else too — rent, wages, fees and taxes. This tool works with the cost figure you enter, so enter the direct cost for a gross margin, or the fully loaded cost for a figure closer to net margin. State which one you mean when you quote it.

How does a discount change my margin?

It cuts it twice over: the price falls while the cost stays the same. A 100 item sold at 130 has a 23% margin; discount it 10% to 117 and the margin falls to about 14.5%. Re-run the discounted price here before offering a sale, because a discount that looks small can take most of the profit.