---
title: "Markup Calculator: Gross and Profit Margin | Ledgerbrook"
source: https://ledgerbrook.com/tools/markup-calculator/
description: "Markup calculator: price from cost, cost-plus pricing, and gross and net profit margin from your P&amp;L totals."
---

Free calculator

# Markup Calculator

## What is the difference between markup and margin?

Markup is profit as a percentage of cost; margin is profit as a percentage of the selling price. An item that costs **$60.00** and sells for **$100.00** has a $40.00 profit, a **66.7% markup** and a **40% margin**. To price for a target margin, divide the cost by one minus the margin.

1\. Cost per unit

What one unit costs you to buy or make, including freight in. Leave out sales tax.

2\. And you know theselling price, $markup, %target margin, %

The price you sell one unit for, before sales tax.

Everything updates as you type. Nothing you enter leaves your browser.

Selling price

$100.00

A 66.7% markup is a 40% margin.

Cost

$60.00

Gross profit per unit

$40.00

Markup (profit ÷ cost)

66.7%

Margin (profit ÷ price)

40%

Price ÷ cost

1.667×

A margin is only as right as the cost of goods sold behind it. Ledgerbrook keeps cost of goods sold, inventory and gross profit right in QuickBooks Online for $149 a month.

[Send your file for a free review →](/contact/?service=monthly)[What monthly bookkeeping includes](/monthly-bookkeeping/)

Ledgerbrook

The books behind these numbers, kept for you.

US small business bookkeeping in QuickBooks Online. Fixed prices, agreed before any work starts.

[Get a free file review](/contact/?from=tools%2Fmarkup-calculator)

Bookkeeping or CPA firm? [We work under your name](/for-bookkeeping-firms/).

- [Behind on the booksCleanup and catch-up$99per month of backlog20% off 6+ monthsSee what's included](/quickbooks-cleanup/)
- [Every monthMonthly bookkeeping$149a month and upReconciled and closed every monthSee what's included](/monthly-bookkeeping/)
- [At year endCPA handoff pack$199a client, one-timeA file your CPA can file fromSee what's included](/for-cpas/)

Whole business

## Gross margin calculator: gross and net profit margin from your P&L

Gross margin is revenue minus the cost of goods sold, divided by revenue. Margin on one item is above. For the whole business, take three totals from a Profit and Loss report for the same period. In QuickBooks Online they are Total Income, Total Cost of Goods Sold and Total Expenses; add any Other Expenses to the last box and take Other Income off it.

Total income (revenue)

Cost of goods sold

All other expenses

A service business with no cost of goods sold can leave the middle box at zero. Gross margin then reads 100% and average markup n/a, so net margin is the number to watch.

Net profit margin

10%

Gross profit

$100,000

Gross margin

40%

Net profit

$25,000

Average markup on cost of goods

66.7%

Cost-plus pricing

## Cost-plus pricing calculator: unit cost plus a markup

Cost-plus pricing sets the price by adding a fixed markup to the full cost of one unit: materials, direct labor and a share of overhead. The markup is a percentage of cost, so the margin it leaves is always smaller.

Materials per unit

Direct labor per unit

Overhead per unit

Markup, %

Overhead per unit is the period's overhead from the P&L divided by the units made or sold in it: $96,000 of yearly rent, insurance and admin pay over 12,000 units is $8.00 a unit.

Cost-plus price

$62.50

Full unit cost

$50.00

Profit per unit

$12.50

Margin on price

20%

Gross margin, before overhead

32.8%

**Unit cost** = Materials + Direct labor + Overhead, per unit

**Cost-plus price** = Unit cost × (1 + Markup)

With the defaults, $30.00 + $12.00 + $8.00 = $50.00, and a 25% markup gives $62.50. The margin on that price is 20%. The gross margin on the P&L reads higher, 32.8%, because overhead sits below gross profit there, not in cost of goods sold.

### When cost-plus pricing works, and where it fails

- **It works** for custom and one-off jobs with no market price to compare, for products whose costs move often, and for contracts where the buyer agrees to pay costs plus a fee.
- **It ignores demand.** The formula never asks what a customer would pay, so it can price above the market or leave money on the table. Check the result against competitors before using it.
- **It is only as good as the cost.** Overhead left out, freight in missing from materials, or labor coded to the wrong account all carry straight into the price. That is a bookkeeping problem before it is a pricing one.
- **On contracts, it rewards higher cost.** When the fee is a percentage of cost, every extra dollar spent raises the fee. That is why federal contracting rules forbid the cost-plus-a-percentage-of-cost form ([FAR 16.102(c)](https://www.acquisition.gov/far/16.102)) and use a fixed or incentive fee instead. Who pays for mistakes in a private cost-plus contract is whatever the contract says, so read it before signing.

Lookup table

## Markup to margin conversion chart

The margin each markup gives, and the price on a $100.00 cost. To convert any markup yourself, divide it by one plus the markup.

| Markup | Margin | Price on $100 cost | Multiply cost by |
| --- | --- | --- | --- |
| 10% | 9.1% | $110.00 | 1.100 |
| 15% | 13% | $115.00 | 1.150 |
| 20% | 16.7% | $120.00 | 1.200 |
| 25% | 20% | $125.00 | 1.250 |
| 30% | 23.1% | $130.00 | 1.300 |
| 33.3% | 25% | $133.33 | 1.333 |
| 40% | 28.6% | $140.00 | 1.400 |
| 50% | 33.3% | $150.00 | 1.500 |
| 60% | 37.5% | $160.00 | 1.600 |
| 75% | 42.9% | $175.00 | 1.750 |
| 100% | 50% | $200.00 | 2.000 |
| 150% | 60% | $250.00 | 2.500 |
| 200% | 66.7% | $300.00 | 3.000 |
| 300% | 75% | $400.00 | 4.000 |

## Margin to markup conversion chart

The markup needed to hit each margin, and the price on a $100.00 cost. Divide the margin by one minus the margin to convert it.

| Target margin | Markup needed | Price on $100 cost | Divide cost by |
| --- | --- | --- | --- |
| 10% | 11.1% | $111.11 | 0.90 |
| 15% | 17.6% | $117.65 | 0.85 |
| 20% | 25% | $125.00 | 0.80 |
| 25% | 33.3% | $133.33 | 0.75 |
| 30% | 42.9% | $142.86 | 0.70 |
| 35% | 53.8% | $153.85 | 0.65 |
| 40% | 66.7% | $166.67 | 0.60 |
| 45% | 81.8% | $181.82 | 0.55 |
| 50% | 100% | $200.00 | 0.50 |
| 60% | 150% | $250.00 | 0.40 |
| 70% | 233.3% | $333.33 | 0.30 |
| 75% | 300% | $400.00 | 0.25 |
| 80% | 400% | $500.00 | 0.20 |

Formulas

## How to calculate markup and margin

Both start from the same gross profit, the selling price minus the cost. They divide it by a different number.

**Markup** = (Price − Cost) ÷ Cost

**Margin** = (Price − Cost) ÷ Price

**Price from a markup** = Cost × (1 + Markup)

**Price from a target margin** = Cost ÷ (1 − Margin)

**Margin from markup** = Markup ÷ (1 + Markup), and **markup from margin** = Margin ÷ (1 − Margin)

**Gross margin** = (Revenue − Cost of goods sold) ÷ Revenue

Worked through on a $60.00 cost and a $100.00 price: the profit is $40.00, the markup is $40.00 ÷ $60.00 = 66.7%, and the margin is $40.00 ÷ $100.00 = 40%. A margin can never reach 100%, because that would need a cost of zero; a markup has no ceiling.

Pricing mistakes

## Three pricing mistakes the formulas prevent

### Adding the target margin to cost

An owner who wants a 30% margin on a $70.00 item and adds 30% to cost charges $91.00. The margin on that price is 23.1%, not 30%. The price that gives 30% is $70.00 ÷ 0.7 = $100.00. On a price list of hundreds of items, that gap shows up as a gross margin on the P&L that never matches the plan.

### Discounting without checking the margin

An item that costs $100.00 and is marked up 50% sells for $150.00: a $50.00 profit and a 33.3% margin. Take 20% off and the price is $120.00, the profit is $20.00 and the margin is 16.7%. A 20% discount cut the gross profit on each sale by 60%, so the sale has to move 2.5 times as many units to earn the same gross profit.

### Pricing from an incomplete cost

The cost in the formula should be the landed cost: the supplier price plus freight in, duties and anything else paid to get the item ready to sell. That is also what belongs in inventory on the balance sheet, as the [inventory journal entry guide](/blog/journal-entry-for-inventory/) shows. Sales tax is neither cost nor price: it is collected for the state and sits in a liability account, so leave it out of both.

In the books

## Gross margin and net margin on a QuickBooks Online P&L

The profit margin calculator above reads these lines. Here they are on a QuickBooks Online Profit and Loss report, with the same example numbers. Gross margin only means something when product costs post to Cost of Goods Sold accounts rather than to ordinary expenses.

| P&L line | Amount | % of income |
| --- | --- | --- |
| Total Income | $250,000.00 | 100% |
| Total Cost of Goods Sold | $150,000.00 | 60% |
| Gross Profit | $100,000.00 | 40% |
| Total Expenses | $75,000.00 | 30% |
| Net Operating Income | $25,000.00 | 10% |
| Net Income | $25,000.00 | 10% |

- **Gross margin** is Gross Profit ÷ Total Income: 40% here. It is the margin the calculator shows, averaged over everything sold in the period.
- **The average markup** is Gross Profit ÷ Total Cost of Goods Sold: $100,000.00 ÷ $150,000.00 = 66.7%. If the price list says 100% and the P&L says 66.7%, look at discounts, shrink and costs that never made it into the price.
- **Net margin** is Net Income ÷ Total Income: 10%. It is what is left after rent, payroll and every other expense. With no Other Income or Other Expenses, Net Operating Income and Net Income are the same number, as here.
- To show the percentages on the report itself, open the Profit and Loss report, select Customize, open Rows/Columns and check **% of income**, per Intuit's [common custom reports](https://quickbooks.intuit.com/learn-support/en-us/help-article/report-management/common-custom-reports/L7K8b1pyW_US_en_US) article.

A gross margin that jumps around from month to month usually means inventory is being expensed when it is bought instead of when it is sold, or that the count was never adjusted. The [year-end inventory count](/blog/year-end-inventory-count/) post covers the adjustment, and the [year-to-date profit and loss](/blog/year-to-date-profit-and-loss/) guide covers what a lender checks on the report.

Benchmarks

## What is a good gross margin and profit margin by industry?

Gross and net margins of listed US companies, from [NYU Stern's margins by sector](https://pages.stern.nyu.edu/~adamodar/New_Home_Page/datafile/margin.html) (Aswath Damodaran, January 2026 data). Small businesses differ, often a lot, so treat these as an order of magnitude, not a target. The markup column is the gross margin converted.

| Industry | Gross margin | Same as markup | Net margin |
| --- | --- | --- | --- |
| Restaurants and dining | 32.2% | 47.6% | 9.4% |
| General retail | 33.2% | 49.7% | 5.6% |
| Specialty retail | 35.3% | 54.6% | 5.2% |
| Grocery and food retail | 26.3% | 35.7% | 1.3% |
| Apparel | 56.9% | 131.9% | 3.9% |
| Engineering and construction | 15.5% | 18.3% | 5.9% |
| Homebuilding | 22.7% | 29.4% | 9.5% |
| Software | 71.7% | 253.6% | 25.5% |
| All US companies | 37.8% | 60.7% | 9.7% |

The gap between the two columns is overhead, interest and income tax. Listed restaurant companies keep about 32.2% of sales after cost of sales and about 9.4% after everything, so a markup that covers the cost of the item is only the start: it also has to pay for everything below gross profit.

Frequently asked

## Markup and margin questions

More free tools, from the [cost of an employee calculator](/tools/cost-of-an-employee-calculator/) to the [small business bookkeeping template](/templates/small-business-bookkeeping-template/), are on the [tools page](/tools/). To see how much you need to sell at a given margin, use the [break-even calculator](/tools/break-even-calculator/).

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

No. A 30% markup on a $100.00 cost gives a $130.00 price and a 23.1% margin. A 30% margin needs a price of $142.86, which is a 42.9% markup. The profit in dollars is the same idea in both; markup divides it by cost, margin divides it by the selling price, so whenever the item sells at a profit the markup is the bigger number.

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

Yes. Doubling the cost, a 100% markup, puts half of the selling price in profit: a $40.00 item sold for $80.00 has a $40.00 profit, 100% of cost and 50% of the price. Retailers call this keystone pricing.

### What margin is a 33% markup?

A markup of one third (33.3%) is a 25% margin: cost $75.00, price $100.00, profit $25.00. A flat 33% markup is 24.8%. To convert any markup, divide it by one plus the markup: 0.33 ÷ 1.33.

### How do I add a 25% markup to a price?

Multiply the cost by 1.25. A $80.00 cost becomes $100.00, and a $100.00 cost becomes $125.00. The margin on either is 20%. For a 25% margin instead, divide the cost by 0.75: $100.00 becomes $133.33.

### What is a 30% margin on $100?

It depends which number is $100.00. If $100.00 is the selling price, a 30% margin is $30.00 of profit and the item cost $70.00. If $100.00 is the cost, the price for a 30% margin is $100.00 ÷ 0.7 = $142.86, a $42.86 profit.

### What does a 40% gross margin mean?

That 40 cents of every sales dollar is left after the cost of goods sold, to pay rent, payroll and every other expense and leave a profit. On $250,000 of sales it is $100,000 of gross profit. It equals a 66.7% markup on cost. Whether 40% is good depends on the industry: it is above the 37.8% average for listed US companies, below most software, and far above grocery.

### What does cost-plus 10 percent mean?

The price is the full cost plus 10% of it: a $50.00 unit cost sells for $55.00. That is a 10% markup but a 9.1% margin, because the $5.00 profit is divided by the $55.00 price. In a cost-plus contract it means the buyer pays the actual costs plus a 10% fee; federal contracts do not allow the percentage-of-cost form.

### Should I use markup or margin?

Price with whichever your team finds easier, but set the target as a margin, because that is what the profit and loss report shows. Gross margin is gross profit divided by income, so a 40% target on the price list lines up with the 40% you read on the P&L. A markup target has to be converted first, and that conversion is where most pricing mistakes start.

### What is a good markup percentage?

There is no standard one: the markup has to cover overhead and leave a profit, so it depends on how much rent, payroll and software sit below gross profit. As a reference, listed US companies averaged a 37.8% gross margin in January 2026 (NYU Stern data), which is a 60.7% markup, but grocery runs near 26% and software above 70%. Work back from your own P&L instead: the gross margin you need is expenses plus target profit, divided by income.

### How do I calculate markup and margin in Excel?

With cost in A2 and price in B2, markup is =(B2-A2)/A2 and margin is =(B2-A2)/B2; format both as percentages. For the price that gives a target margin in C2, use =A2/(1-C2). For the price from a markup in C2, use =A2\*(1+C2).

Updated November 17, 2026
