COC

Free Small Business Tool

Cost Price Calculator

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

Cost Price Calculator

$
Enter a positive number
$
Enter a positive number
$
Enter a positive number
%
Enter a valid percentage
$
Enter a positive number
%
Margin must be less than 100%
Enter a valid percentage below 100
Copied to clipboard
Cost Profit Selling Price $0 $0

What Is a Cost Price Calculator?

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.

Cost Price, Markup & Margin Formulas

The relationships this calculator applies in every mode.

Profit = Selling Price − Cost Price

The most basic figure: how much money is left over once the cost of goods is subtracted from what the customer pays.

Markup % = (Profit ÷ Cost) × 100

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 % = (Profit ÷ Selling Price) × 100

Margin expresses the same profit as a percentage of the selling price instead — how much of each dollar of revenue is actually profit.

Selling Price = Cost × (1 + Markup ÷ 100)

Given a cost and a target markup percentage, this formula returns the selling price needed to hit that markup exactly.

Selling Price = Cost ÷ (1 − Margin ÷ 100)

Given a cost and a target margin percentage instead, this formula returns the selling price needed to hit that margin.

How the Cost Price Calculator Works

Three inputs, whichever mode fits how you price.

1

Choose Your Starting Point

Pick the mode that matches what you already know: cost and selling price, cost and a target markup, or cost and a target margin.

2

Enter Your Figures

Type in your cost price along with the second known value for your chosen mode.

3

Automatic Calculation

The calculator instantly works out the missing figures and updates the cost-vs-profit breakdown diagram.

4

Review & Apply

See markup, margin, profit and selling price together, then copy or share the full breakdown for your pricing records.

Complete Guide to Cost Price, Markup and Margin

Everything the calculator is doing, explained in plain language.

What Belongs in Cost Price

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 vs Margin: Why They're Not the Same Number

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.

Converting Between Markup and Margin

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.

Setting a Selling Price from a Target Markup

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.

Setting a Selling Price from a Target Margin

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).

Accounting for Tax and Compliance

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.

Overheads, Seasonality and Ongoing Adjustment

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.

Step-by-Step Cost Price Examples

Eight worked calculations across all three modes.

Example 1 — Cost and Selling Price Given

Cost price is $50, selling price is $70.

Profit = 70 − 50 = $20 Markup = (20 ÷ 50) × 100 = 40% Margin = (20 ÷ 70) × 100 = 28.57%

Example 2 — Classic Markup vs Margin Comparison

Cost price is $60, selling price is $100.

Profit = 100 − 60 = $40 Markup = (40 ÷ 60) × 100 = 66.67% Margin = (40 ÷ 100) × 100 = 40%

Example 3 — Setting a Selling Price from Markup

Cost price is $50, target markup is 20%.

Selling Price = 50 × (1 + 0.20) = $60 Profit = 60 − 50 = $10 Margin = (10 ÷ 60) × 100 = 16.67%

Example 4 — Setting a Selling Price from Margin

Cost price is $50, target margin is 30%.

Selling Price = 50 ÷ (1 − 0.30) = 50 ÷ 0.70 = $71.43 Profit = 71.43 − 50 = $21.43 Markup = (21.43 ÷ 50) × 100 = 42.86%

Example 5 — High-Volume Product

Cost price is $5 per unit, selling price is $8.

Profit = 8 − 5 = $3 Markup = (3 ÷ 5) × 100 = 60% Margin = (3 ÷ 8) × 100 = 37.5%

Example 6 — Service-Based Pricing (Margin Target)

Cost to deliver a service is $200, target margin is 50%.

Selling Price = 200 ÷ (1 − 0.50) = $400 Profit = 400 − 200 = $200

Example 7 — Including Overhead in Cost Price

A business incurs $10,000 in monthly overhead and produces 500 units, plus $30 in direct material cost per unit.

Overhead per unit = 10,000 ÷ 500 = $20 Total cost price = 30 + 20 = $50 per unit

That $50 total cost price then feeds into any of the three calculator modes above.

Example 8 — Break-Even Check

Cost price is $45, selling price is set at $45.

Profit = 45 − 45 = $0 Markup = 0%, Margin = 0%

A selling price equal to cost price breaks even, with no markup or margin at all.

Quick Reference Tables

How common markup and margin targets compare, and how to convert between them.

Markup vs Equivalent Margin
Markup %Equivalent Margin %
10%9.09%
25%20.00%
33.3%25.00%
50%33.33%
66.67%40.00%
100%50.00%
Selling Price for a $50 Cost at Various Markups
Markup %Selling PriceProfit
20%$60.00$10.00
40%$70.00$20.00
60%$80.00$30.00
100%$100.00$50.00
Selling Price for a $50 Cost at Various Margins
Margin %Selling PriceProfit
20%$62.50$12.50
30%$71.43$21.43
40%$83.33$33.33
50%$100.00$50.00

Benefits of Using a Cost Price Calculator

Why business owners reach for a dedicated tool instead of a spreadsheet formula.

Instant Calculation

Get markup, margin, profit and selling price the moment you enter your figures.

Never Confuse Markup and Margin

See both figures side by side, clearly labeled, every time — no more guessing which one a supplier quoted.

🎯

Price from Either Direction

Start from a known selling price, or work forward from a target markup or margin instead.

📊

Visual Cost-vs-Profit Breakdown

A live diagram shows exactly how much of your selling price is cost and how much is profit.

💼

Useful for Any Business Size

The same formulas work whether you're pricing a single product or a full catalogue.

📱

Mobile-Friendly

Check a pricing decision on the go, whether you're at a supplier meeting or reviewing a quote.

Practical Applications of Cost Price Calculations

Where markup and margin decisions come up across different kinds of businesses.

$

Retail Pricing

Retailers commonly set prices using a target markup on wholesale cost, adjusted for competitor pricing and perceived value.

Manufacturing & Wholesale

Manufacturers price in bulk using per-unit cost, including materials, labor and allocated overhead, to protect margins at scale.

Service & Consulting Pricing

Agencies and consultancies often price using margin targets on top of billable cost, including staff time and overhead.

E-commerce & DTC Brands

Online sellers frequently recalculate cost price as shipping, packaging and ad spend costs shift, to protect target margins.

Food & Hospitality Costing

Restaurants and cafes calculate cost price per dish, including ingredients and preparation labor, to set menu prices profitably.

Financial Reporting & Budgeting

Finance teams use cost price, margin and markup figures to build revenue forecasts and evaluate product-line profitability.

Common Cost Price Mistakes

Avoid these errors when calculating markup, margin and pricing.

Treating markup and margin as the same number

A 50% markup is only a 33.3% margin, not 50% — mixing them up leads to underpricing.

Forgetting overhead in cost price

Counting only materials and direct labor, while ignoring rent, utilities and admin costs, understates true cost and erodes margins.

Using the wrong formula for a margin target

A margin target requires dividing cost by (1 − margin), not multiplying cost by (1 + margin) — that shortcut only works for markup.

Ignoring applicable taxes

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.

Setting a price once and never revisiting it

Rising material or labor costs can quietly shrink a margin that was healthy when the price was first set.

Copying a competitor's price without knowing their cost structure

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.

Frequently Asked Questions

Everything business owners ask about cost price, markup and margin.

How do I calculate cost price using a profit 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.

What is the difference between markup and margin?

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.

Can I include overhead costs in my cost price calculations?

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.

What are the best practices for setting retail prices?

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.

How do seasonal trends affect pricing strategies?

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.

How do I convert a markup percentage into a margin percentage?

Use Margin % = Markup ÷ (100 + Markup) × 100. For example, a 66.67% markup converts to a 40% margin.

How do I convert a margin percentage into a markup percentage?

Use Markup % = Margin ÷ (100 − Margin) × 100. For example, a 40% margin converts to a 66.67% markup.

What is a typical markup for retail products?

Retail markups vary widely by category, but many retailers target somewhere between 30% and 100% markup depending on the product type and competitive landscape.

Should VAT or sales tax be included in the cost price?

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.

Can this calculator handle negative profit (a loss)?

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.

Why can't margin be 100% or more?

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%.

Is this calculator accurate?

Yes. It applies the standard markup, margin and selling price formulas used across retail, wholesale and services pricing.

Is it free to use?

Yes, the Cost Price Calculator is free, with no signup required.

Does it work on mobile?

Yes. The calculator, mode tabs and breakdown diagram are fully responsive and work well on phones and tablets.

Which mode should I use if I only know my desired profit margin?

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.

Price with Confidence

Enter your cost price and see markup, margin and profit instantly — so every price you set actually protects your bottom line.