# Margin and markup calculator: free, any currency | MyRecords

> Type any two of cost, selling price, margin and markup to get the other two, the profit per unit and the price for a target margin, with a worked example.

Canonical: https://myrecords.cloud/resources/free-tools/margin-markup-calculator/
Last updated: 2026-12-03

Free tool · Money and pricing

**Margin and markup calculator**

Type any two of cost, price, margin or markup. See the rest, and the price for your target margin.

-   Works for any country
-   No sign-up
-   Runs in your browser
-   Facts verified 4 Nov 2026

**Margin and markup side by side, on a cost of €80.00**

| Margin | Markup | Price | Profit |
| --- | --- | --- | --- |
| 5% | 5.26% | €84.21 | €4.21 |
| 10% | 11.11% | €88.89 | €8.89 |
| 15% | 17.65% | €94.12 | €14.12 |
| 20% | 25% | €100.00 | €20.00 |
| 25% | 33.33% | €106.67 | €26.67 |
| 30% | 42.86% | €114.29 | €34.29 |
| 40% | 66.67% | €133.33 | €53.33 |
| 50% | 100% | €160.00 | €80.00 |
| 60% | 150% | €200.00 | €120.00 |
| 75% | 300% | €320.00 | €240.00 |

An estimate to help you plan. Nothing you type is uploaded.

 Formula and worked example

In short

Margin is profit as a share of the selling price; markup is the same profit as a share of the cost. Margin = (price − cost) ÷ price; markup = (price − cost) ÷ cost. A product bought for 80 and sold for 120 makes 40 profit, which is a 33.33% margin and a 50% markup, so markup is always the larger number. To price for a target margin, divide the cost by (1 − margin): a 40% margin on a cost of 80 needs a price of 133.33. Adding 40% to the cost instead (112) gives only a 28.57% margin, the usual pricing mistake.

Also called: Profit margin calculator, Markup calculator, Markup to margin converter, Gross margin calculator, Selling price calculator.

## How it is calculated

With cost **C** and selling price **P**, both per unit and before tax:

-   **Profit per unit** = P − C.
-   **Margin** = (P − C) ÷ P × 100.
-   **Markup** = (P − C) ÷ C × 100.
-   **Price from cost and margin**: P = C ÷ (1 − margin). **Price from cost and markup**: P = C × (1 + markup).
-   **Cost from price and margin**: C = P × (1 − margin). A €120 price at a 33.33% margin means a cost of €80.
-   **Margin from markup**: margin = markup ÷ (1 + markup); **markup from margin**: markup = margin ÷ (1 − margin).

**The common mistake:** adding the target margin to the cost. “Cost plus 40%” is a 40% markup, which is only a 28.57% margin. To earn 40% of the price, divide by 0.60, not multiply by 1.40.

Type in any two of the four boxes. The two you typed last are kept and the other two are worked out. Margin and markup together fix the ratio but not the amounts, so the tool then keeps the last money figure you typed.

## Worked example

Nordlicht Tools GmbH in Munich buys a cordless drill for €80.00 and sells it for €120.00, both before VAT.

| Line | Amount |
| --- | --- |
| Profit per unit | €120.00 − €80.00 = €40.00 |
| Margin | €40.00 ÷ €120.00 = 33.33% |
| Markup | €40.00 ÷ €80.00 = 50% |
| Price for a 40% margin | €80.00 ÷ 0.60 = €133.33 (a 66.67% markup) |

So the drill needs €13.33 more, about 11.11% on today’s price, to reach a 40% margin.

## Margin to markup table

| Margin | Markup | Price on a cost of 100 |
| --- | --- | --- |
| 10% | 11.11% | 111.11 |
| 20% | 25% | 125.00 |
| 25% | 33.33% | 133.33 |
| 30% | 42.86% | 142.86 |
| 33.33% | 50% | 150.00 |
| 40% | 66.67% | 166.67 |
| 50% | 100% | 200.00 |
| 60% | 150% | 250.00 |

## Notes

-   **Gross, not net.** This is the gross margin on the item. Overheads such as rent and salaries come out of it. To see how many units cover them, use the [break-even calculator](https://myrecords.cloud/resources/free-tools/break-even-calculator/).
-   **Discounts.** Work the margin on the price you actually get after discounts and rebates.
-   **Rounding.** Margin and markup are shown to two decimals; money to your currency’s minor unit.

## In MyRecords

Sales in MyRecords takes the rate from the customer’s price list. On a quotation, the Quote check tab shows the discount given and the customer’s last rate, and for managers the margin; the Sales gross profit report shows the profit on what you actually sold, and a landed cost voucher in Purchasing adds freight or duty to the item cost so the margin is on the true cost.

## Official sources

Checked 4 Nov 2026

1.  [BDC (Business Development Bank of Canada), 7 steps to setting the right price for your products or services](https://www.bdc.ca/en/articles-tools/marketing-sales-export/marketing/steps-setting-right-price-your-products-services) markup = gross profit per unit ÷ cost of goods sold per unit × 100; gross margin = gross profit ÷ revenues × 100
2.  [BDC, Gross margin (entrepreneur glossary)](https://www.bdc.ca/en/articles-tools/entrepreneur-toolkit/templates-business-guides/glossary/gross-margin) gross margin = gross profit ÷ revenue × 100%; gross profit = revenue − cost of goods sold
3.  [Business Queensland (Queensland Government), Mark-up pricing](https://www.business.qld.gov.au/running-business/marketing-sales/marketing/calculators/mark-up) mark-up price = cost of goods sold + (cost of goods sold × mark-up %)
4.  [IFRS Foundation, IASB staff paper AP7B (March 2015), Sales tax presentation, quoting IFRS 15 paragraph 47](https://www.ifrs.org/content/dam/ifrs/meetings/2015/march/iasb/revenue-from-contracts-with-customers/ap7b-sales-tax-presentation-gross-versus-net.pdf) the transaction price excludes amounts collected on behalf of third parties (for example, some sales taxes)

## Who uses it, *and for what*

-   **Retailers** Set a selling price from the cost for a target margin, without the markup mistake.
-   **Wholesalers** Convert markup to margin and back when setting prices.
-   **Small manufacturers** Check the profit per unit and the margin from cost and selling price.
-   **Shops with tax-inclusive prices** Take VAT or GST out of the price first, then see the real margin.

Questions

## Questions people ask

Something else on your mind?

Ask us anything about modules, a quote or moving across. A person from our team replies.

[Ask a question](https://myrecords.cloud/contact/)

**What is the difference between margin and markup?**

Both start from the same profit per unit (selling price − cost). Margin divides it by the selling price; markup divides it by the cost. So markup is always the larger number when there is a profit. A 50% markup is a 33.33% margin, and a 50% margin needs a 100% markup.

**How do I calculate profit margin?**

Margin = (selling price − cost) ÷ selling price × 100, both before tax. A drill bought for €80 and sold for €120 has a margin of €40 ÷ €120 = 33.33%. For a whole business the same sum on totals is the gross margin: gross profit ÷ revenue.

**How do I price for a 30% margin?**

Divide the cost by 0.70. A cost of €80 needs a price of €114.29; a cost of ₹500 needs ₹714.29. In general, price = cost ÷ (1 − target margin). Adding 30% to the cost (€104) gives only a 23.08% margin.

**How do I price for a target margin?**

Divide the cost by (1 − target margin). For a 40% margin on a cost of 80, the price is 80 ÷ 0.60 = 133.33. Adding 40% to the cost (80 × 1.40 = 112) gives only a 28.57% margin, a common pricing mistake.

**How do I convert markup to margin?**

Margin = markup ÷ (1 + markup). A 25% markup is a 20% margin; 50% is 33.33%; 100% is 50%. The other way, markup = margin ÷ (1 − margin): a 20% margin is a 25% markup; 40% is 66.67%.

**Should prices include VAT, GST or sales tax?**

No. Work margins on prices before tax, because the tax you charge is collected for the government and is not your revenue. If you only know the price with tax, choose "Including tax" and enter the rate; the tool takes the tax out first. Use costs before any tax you can reclaim.

**Which costs go into the cost per unit?**

For a trader, the purchase price plus freight and duty to get the item into stock. For a maker, materials, direct labour and other direct costs. Rent, salaries and other overheads are not in it; the margin has to cover them. The break-even calculator shows how many units do.

**Can a margin be 100% or more?**

Only if the cost is zero. A margin of 100% or more is not possible on an item that costs something, while a markup has no upper limit. A negative margin means you sell below cost.

Last updated 3 Dec 2026 Facts last verified 4 Nov 2026 against the official sources below

This tool gives an estimate to help you plan. Rules change; confirm with your accountant before you file or pay.

Any business, anywhere

## One system for any business, anywhere.

Accounting, sales, stock, HR and payroll, CRM, support and an AI Assistant in one place. It works in any country and currency, and we customise it to the way your business runs.

[See every app](https://myrecords.cloud/product/) [Works worldwide](https://myrecords.cloud/solutions/worldwide/)

Free, no obligation

Request a quote

-   For the apps and modules you pick
-   At our best price, in writing
-   Your questions, answered by our team

[Request a quote](https://myrecords.cloud/contact/?topic=quote) [or contact us](https://myrecords.cloud/contact/)
