Work out markup, margin and profit in seconds. Enter your cost price plus a selling price, a target markup, or a target margin, and see every other number update instantly.
✓ 3 calculation modes ✓ Markup vs margin, clearly explained ✓ Works on mobile
The number every price tag is built on top of.
A cost price calculator works out how markup, margin, profit and selling price all relate to each other, starting from what a product or service actually costs you to produce or acquire. Cost price includes every direct expense involved — materials, labor, and any overhead reasonably allocated to that unit — and it's the baseline every pricing decision is built on top of.
From that baseline, businesses typically go one of two directions: they either decide on a selling price and want to know what markup and margin it represents, or they decide on a target markup or margin and want to know what selling price that translates to. This calculator handles both directions, so whichever number you already have, you can instantly see the rest.
Two terms come up constantly in this conversation and are easy to mix up: markup is the percentage added on top of cost price to reach the selling price, while margin is the percentage of the selling price that ends up as profit. They describe the same transaction from two different reference points, and this calculator converts cleanly between them so neither one gets confused for the other.
The relationships this calculator applies in every mode.
The most basic figure: how much money is left over once the cost of goods is subtracted from what the customer pays.
Markup expresses profit as a percentage of the cost price — the number you'd add on top of cost to arrive at the selling price.
Margin expresses the same profit as a percentage of the selling price instead — how much of each dollar of revenue is actually profit.
Given a cost and a target markup percentage, this formula returns the selling price needed to hit that markup exactly.
Given a cost and a target margin percentage instead, this formula returns the selling price needed to hit that margin.
Three inputs, whichever mode fits how you price.
Pick the mode that matches what you already know: cost and selling price, cost and a target markup, or cost and a target margin.
Type in your cost price along with the second known value for your chosen mode.
The calculator instantly works out the missing figures and updates the cost-vs-profit breakdown diagram.
See markup, margin, profit and selling price together, then copy or share the full breakdown for your pricing records.
Everything the calculator is doing, explained in plain language.
Cost price should include every direct expense tied to producing or acquiring a unit — raw materials, direct labor, packaging, and any shipping or import costs incurred before the item is ready to sell. Many businesses also allocate a fair share of indirect overhead, such as rent, utilities and administrative costs, across each unit produced, so that the final cost figure reflects the true cost of doing business rather than just the most obvious line items.
Markup and margin describe the exact same profit, but as a percentage of two different bases: markup is profit divided by cost, while margin is profit divided by selling price. Because the selling price is always larger than the cost price (assuming a profit is being made), margin will always be a smaller percentage than markup for the same transaction — a 100% markup, for example, corresponds to only a 50% margin, which is a common source of pricing mistakes when the two terms get used interchangeably.
If you know the markup percentage, the equivalent margin is Markup ÷ (100 + Markup) × 100. If you know the margin percentage instead, the equivalent markup is Margin ÷ (100 − Margin) × 100. These conversions are useful whenever a supplier quotes one figure and your own pricing policy is set in terms of the other.
If your pricing policy is markup-based — common in retail and wholesale — the selling price is simply the cost price multiplied by (1 + markup ÷ 100). A 50% markup on a $50 cost, for example, gives a selling price of $75, since $50 × 1.5 = $75.
If your pricing policy is margin-based instead — common in services and subscription pricing — the selling price is the cost price divided by (1 − margin ÷ 100). A 40% margin target on a $50 cost, for example, requires a selling price of $83.33, since $50 ÷ 0.6 = $83.33 (not simply $50 × 1.4, which is the markup calculation instead).
Depending on where a business operates, sales tax, VAT or GST may need to be added on top of the selling price calculated here, rather than baked into the cost or margin figures themselves. Because VAT and GST rates vary significantly by country and product category, it's worth confirming the applicable rate and whether it should be shown separately on the invoice or included in the displayed price, before finalizing a customer-facing price.
Cost price isn't necessarily fixed forever — material costs, labor rates and overhead allocation can shift with the seasons, supplier changes or scale, so it's good practice to revisit cost price calculations periodically rather than setting a price once and leaving it unexamined. A margin or markup target that made sense at one cost level can quietly erode if costs creep up and the selling price isn't reviewed alongside them.
Eight worked calculations across all three modes.
Cost price is $50, selling price is $70.
Cost price is $60, selling price is $100.
Cost price is $50, target markup is 20%.
Cost price is $50, target margin is 30%.
Cost price is $5 per unit, selling price is $8.
Cost to deliver a service is $200, target margin is 50%.
A business incurs $10,000 in monthly overhead and produces 500 units, plus $30 in direct material cost per unit.
That $50 total cost price then feeds into any of the three calculator modes above.
Cost price is $45, selling price is set at $45.
A selling price equal to cost price breaks even, with no markup or margin at all.
How common markup and margin targets compare, and how to convert between them.
| Markup % | Equivalent Margin % |
|---|---|
| 10% | 9.09% |
| 25% | 20.00% |
| 33.3% | 25.00% |
| 50% | 33.33% |
| 66.67% | 40.00% |
| 100% | 50.00% |
| Markup % | Selling Price | Profit |
|---|---|---|
| 20% | $60.00 | $10.00 |
| 40% | $70.00 | $20.00 |
| 60% | $80.00 | $30.00 |
| 100% | $100.00 | $50.00 |
| Margin % | Selling Price | Profit |
|---|---|---|
| 20% | $62.50 | $12.50 |
| 30% | $71.43 | $21.43 |
| 40% | $83.33 | $33.33 |
| 50% | $100.00 | $50.00 |
Why business owners reach for a dedicated tool instead of a spreadsheet formula.
Get markup, margin, profit and selling price the moment you enter your figures.
See both figures side by side, clearly labeled, every time — no more guessing which one a supplier quoted.
Start from a known selling price, or work forward from a target markup or margin instead.
A live diagram shows exactly how much of your selling price is cost and how much is profit.
The same formulas work whether you're pricing a single product or a full catalogue.
Check a pricing decision on the go, whether you're at a supplier meeting or reviewing a quote.
Where markup and margin decisions come up across different kinds of businesses.
Retailers commonly set prices using a target markup on wholesale cost, adjusted for competitor pricing and perceived value.
Manufacturers price in bulk using per-unit cost, including materials, labor and allocated overhead, to protect margins at scale.
Agencies and consultancies often price using margin targets on top of billable cost, including staff time and overhead.
Online sellers frequently recalculate cost price as shipping, packaging and ad spend costs shift, to protect target margins.
Restaurants and cafes calculate cost price per dish, including ingredients and preparation labor, to set menu prices profitably.
Finance teams use cost price, margin and markup figures to build revenue forecasts and evaluate product-line profitability.
Avoid these errors when calculating markup, margin and pricing.
A 50% markup is only a 33.3% margin, not 50% — mixing them up leads to underpricing.
Counting only materials and direct labor, while ignoring rent, utilities and admin costs, understates true cost and erodes margins.
A margin target requires dividing cost by (1 − margin), not multiplying cost by (1 + margin) — that shortcut only works for markup.
VAT, GST or sales tax may need to be added on top of the calculated selling price, depending on local rules and how prices are displayed.
Rising material or labor costs can quietly shrink a margin that was healthy when the price was first set.
A competitor's lower price may reflect a lower cost base, bulk purchasing power, or a deliberate loss-leader strategy — matching it blindly can erase your own margin.
Everything business owners ask about cost price, markup and margin.
Subtract the margin percentage from 100% to get the cost percentage, then divide the selling price by that percentage. For example, with a 20% margin on a $120 selling price, the cost price is $120 × 0.80 = $96... more precisely, Cost = Selling × (1 − Margin), so $120 × 0.80 = $96.
Markup is the percentage added to the cost price to reach the selling price. Margin is the percentage of the selling price that represents profit. Both measure profitability, but from different reference points.
Yes, and you generally should. Overheads like rent, utilities and administrative costs support production even though they aren't tied to a single unit, and leaving them out understates your true cost.
Understand your full cost structure, factor in market demand and competitive pricing, account for applicable taxes, and set a markup or margin target that reflects the value customers place on the product.
Seasonal shifts in material costs, labor availability and demand can change the true cost price of a product, which may call for adjusted prices or promotional strategies to maintain profitability.
Use Margin % = Markup ÷ (100 + Markup) × 100. For example, a 66.67% markup converts to a 40% margin.
Use Markup % = Margin ÷ (100 − Margin) × 100. For example, a 40% margin converts to a 66.67% markup.
Retail markups vary widely by category, but many retailers target somewhere between 30% and 100% markup depending on the product type and competitive landscape.
Generally no — cost price should reflect what the business itself pays before tax, with applicable VAT, GST or sales tax added on top of the final selling price as required by local regulations.
Yes. If the selling price is lower than the cost price, the calculator will show a negative profit and negative markup/margin, indicating the product is being sold at a loss.
Margin is profit divided by selling price, and profit can never exceed the selling price itself (that would mean a negative cost), so margin is mathematically capped below 100%.
Yes. It applies the standard markup, margin and selling price formulas used across retail, wholesale and services pricing.
Yes, the Cost Price Calculator is free, with no signup required.
Yes. The calculator, mode tabs and breakdown diagram are fully responsive and work well on phones and tablets.
Use the "Cost & Margin %" mode — enter your cost price and target margin, and the calculator will return the selling price needed to hit that margin exactly.
Enter your cost price and see markup, margin and profit instantly — so every price you set actually protects your bottom line.