Price a product off the wrong percentage and you can sell every unit yet still miss your target. The profit margin and markup calculator on this page takes your cost plus either a markup or a margin, then returns the selling price, the profit, and the matching percentage on the other side, so you can compare cost, revenue and profit before you commit to a number. The business loan calculator uses the same plain-English approach, so you can compare results side by side.
Your results
Gross margin
–
Markup
–
Profit per unit
–
Cost per unit
–
Selling price per unit
–
Total revenue
–
Total cost
–
Total gross profit
–
Selling price for other target margins
Based on your cost per unit: the price you would need to charge for each gross margin, and the markup that price represents.
Gross margin
Markup
Selling price
Profit per unit
Results are estimates for educational purposes and are not financial, tax or legal advice.
Price a product off the wrong percentage and you can sell every unit yet still miss your target. The profit margin and markup calculator on this page takes your cost plus either a markup or a margin, then returns the selling price, the profit, and the matching percentage on the other side, so you can compare cost, revenue and profit before you commit to a number. The business loan calculator uses the same plain-English approach, so you can compare results side by side.
How the Profit Margin and Markup Calculator Works
Think of this markup and margin calculator as a two-way pricing tool. Enter any two of the four core values (cost, selling price, markup, margin) and it solves for the rest. Start from cost and a markup, and it behaves like a free markup calculator that hands back a selling price. Start from a target percentage of revenue, and it prices the unit backwards from that figure. Enter both prices and it becomes a markup percentage calculator that also shows the matching margin.
The same inputs also answer the questions people usually ask of a profit calculator, a profit margin calculator or a gross margin calculator: how much money is left on each sale, and what share of the sale it represents.
Enter your cost, meaning what you paid to make, buy or deliver one unit.
Choose what you know next: a markup percentage, a margin percentage, or the selling price itself.
Read the results: selling price, profit per unit, markup and margin.
Adjust one input at a time to see how the other three respond.
Cost of Goods Sold and Selling Price Explained
Your cost of goods sold (COGS) is the direct spend behind a unit: materials, manufacturing, inbound freight and packaging. Some sellers call the same figure the cost price. The selling price is the revenue you collect from the customer, and the gap between the two is your gross profit. Rent, wages and marketing sit outside this gap, which matters later when you compare gross and net results.
Markup Percentage vs Margin Percentage
The two percentages describe the same profit from different angles. A markup percentage is profit measured against cost, while a margin percentage is profit measured against revenue. Because revenue is always larger than cost when you make money, markup always shows the bigger number for the same sale.
Markup vs Margin: The Difference That Changes Your Price
The difference between markup and margin is the denominator. Markup expresses profit as a proportion of cost, a percentage increase over what you paid, and answers "how much did I add on top of what I paid?" Margin expresses profit as a proportion of revenue, the percentage of the revenue you keep, and answers "what share of each sale do I keep?" Sellers who confuse markup vs margin tend to underprice, because a 40% markup feels like a 40% margin and it is nowhere near.
Why a Markup Never Equals the Margin
Take a unit that costs $38.60 and sells for $54.04. The profit is $15.44. Measured against the $38.60 cost, that is a 40% markup. Measured against the $54.04 revenue, it is only a 28.57% margin. Both numbers are correct; they just answer different questions, and the only time they match is when profit is zero.
Which Percentage Should You Quote?
Quote markup when you set prices from a supplier's invoice, since the cost is the number in front of you. Quote margin when you report results, compare products, or talk to investors, because margin shows what share of sales turns into profit. Keep the markup vs margin distinction explicit in every pricing sheet so a colleague never reads one as the other.
Profit Margin Formula and Markup Formula
Every result on the calculator comes from a handful of relationships. Start with profit, which is the same in all of them: Pair this with the inventory analysis calculator for a fuller picture before you make a decision.
The gross margin formula, also called the profit margin formula, divides profit by revenue instead. It is the quickest way to learn how to calculate profit margin from two prices:
A 45% margin therefore equals a markup of 0.45 ÷ 0.55 = 81.8%, and a 100% markup equals only a 50% margin.
Worked Example: Markup Calculator Results for One Product
Suppose you stock a ceramic pour-over kettle that costs you $38.60 per unit, and you choose an 85% markup. The calculator multiplies $38.60 by 1.85 to get a selling price of $71.41. Profit per unit is $71.41 − $38.60 = $32.81, and the margin is $32.81 ÷ $71.41 = 45.95%. An 85% markup is a 46% margin; the two figures describe one sale.
One $71.41 sale: the same $32.81 profit is an 85% markup on cost and a 45.95% margin on price.
The table shows how the same $38.60 cost behaves at other markups, so you can see how quickly profit per unit builds and how slowly margin climbs.
Markup %
Selling price
Profit per unit
Margin %
40%
$54.04
$15.44
28.57%
60%
$61.76
$23.16
37.50%
85%
$71.41
$32.81
45.95%
120%
$84.92
$46.32
54.55%
Working Backwards from a Target Margin
Now reverse-calculate the price. If your accountant says each unit must carry a 42% margin, divide the cost by 1 − 0.42: $38.60 ÷ 0.58 = $66.55. Profit is $27.95, and the markup you would have to apply to the cost is 72.4%. Setting a 42% markup instead would give a price of only $54.81 and a margin near 29.6%, a $11.74 shortfall per unit against what the margin target requires.
A 42% margin on a $38.60 cost needs a $66.55 price, $11.74 more than a 42% markup.
Markup to Margin Conversion Table
When you need a fast markup to margin conversion without opening the calculator, this conversion table covers common pricing steps. Each margin is the markup divided by one plus the markup.
Markup %
Margin %
Margin equivalent of the markup
12.5%
11.1%
Thin distribution pricing
30%
23.1%
Typical wholesale pricing
60%
37.5%
Mid-range retail pricing
120%
54.5%
Specialty retail pricing
180%
64.3%
Services pricing
250%
71.4%
SaaS pricing
Notice that margin can never reach 100%, no matter how high the markup climbs, while markup has no ceiling at all.
Margin flattens as markup grows: it approaches 100% but never reaches it.
Repricing a Yoga Mat with the Markup and Margin Calculator
Ines runs a small online studio shop, and her supplier has just raised the landed cost of a 6 mm yoga mat from $17.43 to $19.12. The mat sells for $26.99, and she wants to know what the increase did to her profit before she touches the price.
She first enters the old figures: cost $17.43 and selling price $26.99. The calculator returns a profit of $9.56, a markup of 54.85% and a margin of 35.42%. That is her baseline. Then she changes only the cost to $19.12 and leaves the price alone. Profit drops to $7.87, and the margin falls to 29.16%, while the markup, measured against the new and larger cost, reads 41.16%.
The 29.16% margin sits below the 33% low end of the retail range she has seen quoted for sporting goods, so holding the old price is not an option. Rather than guess, she switches the calculator to a target-margin input and enters 35%, close to her original result. The selling price comes back as $29.42, with profit of $10.30 and a markup of 53.85% on the new cost.
Old price, old cost: $9.56 profit, 35.42% margin.
Old price, new cost: $7.87 profit, 29.16% margin.
Price for a 35% margin: $29.42, giving $10.30 profit.
Her storefront uses .99 price points, so she tests $29.99 next. One more entry shows a profit of $10.87 and a 36.25% margin, a little above her target, and only $3.00 more than the current shelf price. She updates the listing to $29.99 and notes the 29.16% figure as the number to watch if the supplier raises the cost again.
Gross Profit Margin vs Net Profit Margin
Everything above is gross profit margin, the profit left after COGS and nothing else. A net profit margin goes further and subtracts operating expenses such as rent, wages, software and marketing, then divides by revenue. Investors and lenders lean on the net margin because it shows whether your overhead is actually covered; the gross figure only shows whether each unit earns its keep.
That gap is why a SaaS startup, or any business, can post a healthy gross margin and still hurt its overall profitability. If your gross margin is 46% but overhead consumes 44% of sales, you keep a thin 2% at the bottom line. Terminology also varies: some sellers say sales margin, others say gross margin or profit margin for the same thing, so confirm which costs sit in the base before comparing numbers.
What Is a Good Margin? Retail Markup and Wholesale Markup Benchmarks
There is no single good margin, because the answer depends on the cost structure of your industry. Use these industry benchmarks as a starting point, then adjust for your own overhead.
Retail markup: commonly 50% to 150%, which equals roughly a 33% to 60% margin; apparel sits at the high end and electronics at the low end.
Wholesale markup: usually 15% to 30%, equal to a 13% to 23% margin, offset by high volume.
Grocery: very thin, with single-digit margins (a markup of roughly 10% or less) that depend on turnover.
Consulting and professional services: a markup of 100% or more on labor cost is common, since the cost to serve is mostly salary.
SaaS: hosting is cheap per extra user, so a SaaS margin of 70% to 90% is normal for software and SaaS subscriptions alike.
Calculate Margin in Excel
If you track pricing in a spreadsheet, the same logic fits in two cells. With cost in A2 and revenue in B2, type =(B2-A2)/B2 for the margin and =(B2-A2)/A2 for the markup, then format both cells as Percentage in Excel. The results match what the calculator returns for the same inputs.
Pricing Strategy: Using Markup and Margin Together
A sound pricing strategy uses markup to build the price and margin to judge whether it works. The cost-plus number is only your floor. Before you settle, test it against three realities that affect your pricing decisions.
Cover Overhead and Your Desired Profit
Your price must cover direct cost, a share of overhead, and the desired profit you set for the business. Your margin is what pays for those fixed costs, so enter the margin you need and let the calculator return the price. If you price from COGS alone, you will look profitable per unit while the company slowly loses money.
Check Competition and Perceived Value
Moving your price toward a competitor changes both percentages at once, and the calculator shows the margin and markup you give up at each step. Customers pay for perceived value, not for your cost. A well-differentiated product can hold a higher markup than a commodity, while a crowded category with visible competition caps your price however good the formula looks. Run the calculator at two or three candidate prices to see the margin you would trade for being competitive.
Account for Discounts, VAT and Sales Tax
A discount cuts revenue but not cost, so it hits margin harder than most sellers expect: a 10% discount on a 46% margin item leaves roughly 40%. Taxes such as VAT or sales tax are collected on top of the price and are not part of your revenue, so enter the selling price net of tax into the calculator. That keeps the margin honest, whichever tool you use, from a basic price calculator to an upcharge calculator built into your till.
Profit Margin and Markup Calculator questions
What is the difference between markup and margin?
Both measure the same profit, but markup divides it by cost while margin divides it by the selling price. Because the selling price is larger than the cost, markup always shows the higher percentage, and the two only match when profit is zero.
How do I calculate markup from margin?
Write the margin as a decimal, then divide it by one minus the margin. A 40% margin gives 0.40 ÷ 0.60 = 66.7% markup. To go the other way, divide the markup by one plus the markup.
How do I find the selling price for a target profit margin?
Divide your cost by one minus the margin in decimal form. With a $50 cost and a 25% margin, the price is $50 ÷ 0.75 = $66.67.
What is a good profit margin?
It depends on the industry. A net margin around 10% is often seen as acceptable and 20% as strong, while gross margins run far higher in software than in grocery or wholesale. Compare your result with businesses like yours.
Can a margin be 100% or higher?
No. Profit cannot exceed the selling price when costs are positive, so margin stays below 100%. Markup has no upper limit, which is why a very high markup still gives a margin under 100%.
Is gross margin the same as profit margin?
Gross margin only subtracts the cost of goods sold. Net profit margin also subtracts operating expenses such as rent, wages and taxes. This calculator works from the cost you enter, so it returns the gross figure unless your cost includes overhead.
How do I calculate margin and markup in Excel?
With cost in A2 and revenue in B2, margin is =(B2-A2)/B2 and markup is =(B2-A2)/A2. Format both cells as Percentage.
Which should I use to set prices, markup or margin?
Use markup to build a price from a supplier's cost, and margin to check what share of each sale becomes profit. Check both before you publish a price.