Profit margin calculator
Margin, markup and selling price, without mixing up the two percentages.
Updated November 24, 2026 · calculated in your browser, nothing is sent.
Margin vs. markup
Both show profit as a percentage, but from a different base. Margin is profit divided by the selling price. Markup is profit divided by the cost. A markup is always larger than the margin it produces.
| Measure | Formula | Cost 20, price 30 |
|---|---|---|
| Profit | price − cost | 10 |
| Profit margin | profit ÷ price × 100 | 33.33% |
| Markup | profit ÷ cost × 100 | 50% |
| Price ÷ cost | price ÷ cost | 1.5 |
Setting a price from a target
- Target margin: price = cost ÷ (1 − margin). For a 40% margin on a cost of 20: 20 ÷ 0.60 = 33.33.
- Target markup: price = cost × (1 + markup). For a 40% markup on a cost of 20: 20 × 1.40 = 28.
A common mistake
A 50% markup is not a 50% margin. Marking up a cost of 20 by 50% gives a price of 30, which is a 33.33% margin. To earn a true 50% margin on the same cost, the price has to be 20 ÷ 0.50 = 40.
Why it matters
Confusing the two leads to underpricing. If your goal is to keep 40 of every 100 you take in, you need a 40% margin, which is a 66.67% markup on cost. Applying a 40% markup instead leaves you with only a 28.57% margin. Pick the number your target is based on, then let the calculator convert it.
Margin cannot reach 100%, because that would mean the item cost nothing. This calculator shows gross profit per item. It does not subtract shipping, fees, taxes or overhead.
Sources
Checked on November 24, 2026. Spotted an error? Email contact@maxicards.net.
Frequently asked questions
How do I calculate profit margin?
Subtract the cost from the selling price, divide the profit by the selling price and multiply by 100. A price of 30 and a cost of 20 give 10 ÷ 30 = 33.33%.
What is the difference between margin and markup?
Margin is profit as a share of the selling price. Markup is profit as a share of the cost. The same sale has a 33.33% margin and a 50% markup.
How do I find the selling price for a 30% margin?
Divide the cost by 0.70. With a cost of 14, the price is 14 ÷ 0.70 = 20.
Can a markup be over 100%?
Yes. Selling something at three times its cost is a 200% markup, but its margin is only 66.67%.
Other calculators
- Percentage calculatorX% of Y, what percent, percentage change, increase or discount.
- BMI calculatorBody mass index in kg/cm or lb/ft-in, with the WHO category.
- Age calculatorExact age in years, months and days, days lived, next birthday.
- Days between datesDays between two dates, or a date plus or minus days, weeks, months or years.
- Decimal hours to minutesConvert decimal hours to hours and minutes, and back.
- Time card calculatorWeekly timesheet: hours worked per day and in total, in hours-minutes and decimal.
- Add time calculatorAdd and subtract hours and minutes.
- Week numberWeek number of any date (ISO 8601), and the dates of any week.
- Electricity cost calculatorkWh and cost per day, month and year of any appliance.
- Fuel consumption calculatorMPG (US and UK), L/100 km, conversions and trip fuel cost.
- Rule of three calculatorDirect or inverse proportion: find the missing fourth value.
- Loan calculatorMonthly payment, total interest and a year-by-year amortization table.
- Compound interest calculatorSavings growth with monthly deposits, year by year.
- Unit price calculatorCompare two products per oz, lb, kg, liter or item.
- Average calculatorSimple average and weighted average of up to 10 values.
- Median calculatorMedian, quartiles, mean, range and standard deviation of a list.
- Area calculatorArea and perimeter of common shapes, in ft², m² and more.