Profit Margin & Markup Calculator

Check gross profit, distinguish margin from markup, and find the selling price needed for a target gross margin. Use per-item amounts or totals for one period in the same currency.

Business & everyday planningFreeNo sign-up

Copy link includes the amounts and assumptions entered here. Share it only with people who should see those inputs.

Enter amounts without currency symbols, with up to six decimal places. Cost and revenue must use the same basis. Calculations stay in your browser.

How to use the profit margin calculator

Choose Gross margin and markup when you know both revenue and cost. For a single product, enter its selling price and its cost per item. For a period such as a month, enter total sales revenue and the corresponding cost of goods sold. Do not mix a unit price with a monthly cost. Use one currency throughout; the calculator does not convert exchange rates or add tax.

Choose Price for a target margin when you know cost and want to set a price. Enter the cost and a target gross margin below 100%. The result is an unrounded planning price. After choosing a practical price, return to the first mode to check the margin that price actually produces.

Gross margin and markup use different denominators

Start with gross profit: revenue minus cost. Gross margin expresses that profit as a share of revenue. Markup expresses the same profit as a share of cost. Because their denominators differ, a 40% markup is not a 40% margin. This distinction matters when comparing a supplier's markup with a business's margin target.

For positive cost and revenue, margin can also be calculated from markup: margin = markup ÷ (1 + markup), with both rates expressed as decimals. For example, a 50% markup gives 0.5 ÷ 1.5 = one third, or approximately 33.333333% margin. The percentage calculator is useful for related percentage-change questions.

Worked example: a product costing 60

A product costs 60 currency units and sells for 100. Gross profit is 100 − 60 = 40. Gross margin is 40 ÷ 100 × 100 = 40%. Markup is 40 ÷ 60 × 100 = 66.666667%, rounded. To obtain a 40% margin from a cost of 60, calculate 60 ÷ (1 − 0.40) = 100.

Adding only 40% to the cost would instead give 60 × 1.40 = 84. Profit would be 24, and margin would be 24 ÷ 84 × 100, or approximately 28.571429%. A target margin must therefore be calculated by dividing by the remaining revenue share, rather than adding that same percentage to cost.

Gross profit is not net profit

This tool subtracts the cost you enter. If that cost is the cost of goods sold, the result is gross profit. Rent, salaries not included in cost of goods sold, advertising, financing, tax and other expenses may remain. Their treatment depends on the purpose of your analysis and your accounting policy. A positive gross margin alone does not establish that the whole business is profitable.

For pricing decisions, define what belongs in cost before comparing products. Returns, discounts, shipping and transaction charges can change the amount actually received or the cost incurred. This calculator does not automatically include any of them. For the sales volume needed to cover fixed costs, continue with the break-even calculator.

Zero values, losses and rounding

If revenue is zero, gross margin is not defined because its denominator is zero. If cost is zero, markup is not defined, although a positive revenue gives a 100% gross margin. A revenue below cost produces a negative gross profit and negative rates. These are loss indicators, not calculation failures.

The target-price mode requires positive cost and a margin below 100%; with positive cost, no finite price produces exactly 100% gross margin. The screen rounds displayed results while keeping more precision internally. Use the rounding calculator to inspect rounding conventions, then verify any final commercial price using your actual charges and cost assumptions.

Frequently asked questions

What is the difference between margin and markup?

Margin divides gross profit by revenue. Markup divides gross profit by cost. The profit amount is the same, but the percentages differ because their denominators differ.

How do I calculate a selling price for a 40% margin?

Divide cost by 0.60, because cost must occupy 60% of revenue. A cost of 60 therefore needs a selling price of 100 before other adjustments.

Is gross profit the same as net profit?

No. Gross profit subtracts cost of goods sold from revenue. Other operating expenses, financing and taxes may still need to be deducted to determine net profit.

Can gross margin be negative?

Yes. When cost exceeds revenue, gross profit and gross margin are negative. The product or period made a gross loss on the costs included.

Can I use this calculator for any currency?

Yes, if every entered amount uses the same currency and the same unit or accounting period. No exchange rate, tax or currency conversion is applied.

Why is a rate shown as not defined?

Margin cannot be calculated when revenue is zero, and markup cannot be calculated when cost is zero. The gross profit amount can still be shown.