Gross Margin vs Markup Calculator
Gross margin and markup both measure the profit on an item, but they compare that profit to different starting numbers.
Find this on your supplier invoice, wholesale receipt, or material cost sheet for a single item.
Find this on your shelf tag, online product listing, or customer receipt before sales tax.
Gross margin divides profit by the selling price, whereas markup divides profit by the cost, so markup is always a higher percentage for the same profit.
These ranges are only a rough reading aid and vary widely by trade and product type.
Margin shows the percentage of the final selling price that is profit, while markup shows the percentage you added on top of your purchase cost.
- Enter what you pay to buy or make one unit in the Unit cost box.
- Enter what you charge your customer for one unit in the Unit selling price box.
- Read your gross profit, gross margin percentage, and markup percentage right away.
Why the Same Profit Gives Two Different Percentages
When you sell an item, your dollar profit is fixed: Selling price minus Unit cost. However, you can compare that profit to two different base numbers. Suppose you buy a jacket for 60 and sell it for 100. Your gross profit is 40. To find your gross margin, you divide that 40 profit by the 100 selling price, which gives 40%. That tells you that 40 cents of every dollar a customer hands you is gross profit. To find your markup, you divide the same 40 profit by your 60 cost, which gives 66.7%. That tells you that you priced the jacket 66.7% higher than what you paid the supplier. Because your cost should be smaller than your selling price when you make a profit, dividing by the smaller cost always produces a larger percentage. Mixing the two up is dangerous because a 40% markup is much less money than a 40% margin.
How to Set a Selling Price from a Target Margin
Many shop owners know the gross margin they need to pay rent and bills, but they make the mistake of adding that percentage directly to their cost. If your cost is 60 and you want a 40% gross margin, adding 40% to 60 gives you a price of 84. At an 84 price, your profit is 24, and 24 divided by 84 is only a 28.6% margin. To hit a true 40% margin, your cost of 60 must make up the remaining 60% of the final selling price. The formula is: Selling price = Cost divided by (1 minus Target margin as a decimal). For a 60 cost and a 40% (0.40) target margin, divide 60 by (1 - 0.40), which is 60 divided by 0.60. That gives you a selling price of 100. At 100, your profit is 40, your gross margin is 40%, and the matching markup is 66.7%. You can test any target price right in the calculator above.
Common Pricing Mistakes with Margin and Markup
The biggest mistake is using markup when your accountant or business plan calls for margin. If you need a 40% margin to cover store overhead, applying a 40% markup instead leaves you short on every single sale. A second common mistake is giving a discount based on your markup number. If you mark up an item by 50% (say, cost 60 to price 90) and then run a 50% off sale, your sale price drops to 45, meaning you lose 15 on every item sold. Even at a 66.7% markup (cost 60, price 100), your gross margin is 40%, so any discount over 40% puts the sale in the red. A third error is using an old supplier invoice when restock prices have gone up. If you buy stock in separate batches at different prices, calculate your true average cost first using the Weighted Average Inventory Cost Calculator before checking your margin.
When to Count Fees, Shipping, and Your Own Time
This calculator measures single-item gross profit based strictly on unit cost and unit selling price. It does not subtract payment processing fees, marketplace commissions, outbound shipping, packaging, discounts, taxes, or store overhead. If you pay freight or import duty to get stock to your shelf, include that per-unit delivery expense in your unit cost so you do not overstate your profit. If you make products by hand, decide whether to include your direct production labor in the unit cost; if you leave it out, your gross profit has to pay for your time later. Also remember that card processors and online platforms usually take their percentage from the full selling price, not from your profit. On a 100 sale with a cost of 60, a 3% card fee takes 3 out of your 40 gross profit, leaving 37 per sale, or 37% of the selling price, after that card fee alone and before other costs.
Is markup always a higher percentage than gross margin?
Yes, whenever you sell an item for a profit. Both numbers use the exact same dollar profit on top of the fraction, but markup divides that profit by the smaller cost, while margin divides it by the larger selling price.
Why does the calculator show a dash instead of a percentage?
When the selling price is 0, gross margin cannot be divided by zero, so it is undefined. When the unit cost is 0, markup cannot be divided by zero, so it is also undefined.
Does this page save or send my cost and price numbers anywhere?
No. The calculator runs entirely in your web browser and sends no business numbers anywhere.
How can I track costs and gross profit across my whole inventory?
If you use an iPhone, the Inventory & Unit Cost Tracker app lets you track stock in and out, average cost, and total inventory value for up to 10 products on the free tier for new users. Viewing estimated gross profit across your catalog is available as a Pro feature.