# Profit Margin Calculator

> Free profit margin calculator: enter any two of cost, price, profit, margin or markup to solve the rest, with a margin-to-markup table.

Interactive calculator: https://calculatorsplatform.com/c/margin/
Category: Finance Calculators
Calculations run in the browser; inputs can be prefilled through URL parameters and shared with the Share button.

## Margin vs markup: the difference

Margin and markup describe the same profit, measured against different bases.

- **Gross margin** is profit as a share of the **selling price**: what fraction of every sale you keep.
- **Markup** is profit as a share of the **cost**: how much you added on top of what you paid.

> margin = (price − cost) ÷ price

> markup = (price − cost) ÷ cost

Because the price is always larger than the cost when you make a profit, the margin is always the smaller number. An item that costs $60 and sells for $100 has a $40 profit, a **40% margin** and a **66.7% markup**. Mixing the two up is one of the most common pricing mistakes: a shop owner who wants a 40% margin but adds a 40% markup ends up with only a 28.6% margin.

The two convert directly:

> markup = margin ÷ (1 − margin),   margin = markup ÷ (1 + markup)

## Worked examples

1. **Cost and price known:** cost $60, price $100. Profit = $40; margin = 40 ÷ 100 = **40%**; markup = 40 ÷ 60 = **66.67%**.
2. **Pricing for a target margin:** an item costs $70 and you want a 30% margin. Price = cost ÷ (1 − margin) = 70 ÷ 0.70 = **$100**. (A 30% markup would give only $91.)
3. **Pricing with a markup:** cost $25 with a 50% markup → price = 25 × 1.5 = **$37.50**, which is a 33.3% margin.
4. **Maximum cost for a price:** you must sell at $49.99 and need a 45% margin. Maximum cost = 49.99 × (1 − 0.45) = **$27.49**.

The conversion table below the calculator lists common margins with their equivalent markups and the price and profit they produce for your cost.

## Gross margin, net margin and limits of this calculator

This calculator works with **gross** profit: selling price minus the direct cost of the item (cost of goods sold). It does not subtract rent, wages, marketing, payment processing or taxes. Once those are taken off, what remains is **net profit**, and net margin is usually far lower than gross margin.

Some useful rules of thumb:

- A margin can never reach 100% while the item costs anything, but a markup can be any size — a 300% markup is a 75% margin.
- A negative margin means you are selling below cost.
- Discounts eat margin quickly. On a 40% margin, a 20% price cut halves your gross profit per unit, so you would need to sell twice as many units to earn the same gross profit.

For fees that come out of each sale, see the [payment processing fee calculator](https://calculatorsplatform.com/c/payment-fee/); for the return on a whole investment, see the [ROI calculator](https://calculatorsplatform.com/c/roi/).

## Frequently asked questions

### Is a 50% markup the same as a 50% margin?

No. A 50% markup is a 33.3% margin. To get a 50% margin you need a 100% markup — that is, selling at double the cost.

### How do I calculate the selling price from cost and margin?

Divide the cost by (1 − margin). For a $70 cost and a 30% margin: 70 ÷ 0.7 = $100.

### Can a margin be more than 100%?

Not if the item has any cost. Margin approaches 100% as the price grows, but markup has no upper limit.

### What is a good profit margin?

It depends heavily on the industry. Grocery retail runs on thin gross margins, while software and luxury goods often have very high ones. Compare with businesses like yours and check that the margin covers your overheads.

## Sources

- [Investopedia — Gross margin](https://www.investopedia.com/terms/g/grossmargin.asp)
- [Investopedia — Markup](https://www.investopedia.com/terms/m/markup.asp)

*Disclaimer: This calculator provides estimates for informational and educational purposes only and is not financial, tax or legal advice. Actual rates, fees and terms vary by lender, location and your personal situation — confirm numbers with a qualified professional before making decisions.*

## Related calculators

- [Discount Calculator](https://calculatorsplatform.com/c/discount/index.md)
- [Sales Tax Calculator](https://calculatorsplatform.com/c/sales-tax/index.md)
- [Payment Processing Fee Calculator](https://calculatorsplatform.com/c/payment-fee/index.md)
- [ROI Calculator](https://calculatorsplatform.com/c/roi/index.md)
- [Percentage Calculator](https://calculatorsplatform.com/c/percentage/index.md)
- [Percentage Change Calculator](https://calculatorsplatform.com/c/percentage-change/index.md)

---
Source: CalculatorsPlatform (https://calculatorsplatform.com/c/margin/). Last reviewed 2026-11-25. Please link to the calculator page when citing.
