COC

Free Online Tool

Price Calculator

Every price a business sets rests on a handful of interconnected numbers — cost price, selling price, markup, margin, discount, tax and unit price — and mixing any of them up can quietly erode profit or lead to a price that undercuts costs entirely. Cost price is what you paid to acquire or produce an item; selling price is what a customer pays; profit is the difference between the two; markup expresses that profit as a percentage of cost, while margin expresses it as a percentage of selling price — two numbers that look similar but tell different stories. This calculator instantly runs eight pricing calculations — selling price, cost price, profit, markup, discount, sales tax, unit price and break-even price — all updating live as you type, with the exact formula shown alongside every result. It's built for retailers, wholesalers, manufacturers, eCommerce businesses, freelancers, accountants, financial analysts, entrepreneurs and students working on retail pricing, inventory management, financial planning and pricing strategy.

✓ No signup   ✓ 8 calculation modes   ✓ Works on mobile

Price Calculator

Selling Price
Cost Selling
Cost vs. selling price comparison

The Complete Guide to Price Calculations

Everything you need to price products and services with confidence.

What is cost price?

Cost price is the total amount it takes to acquire or produce an item before any profit is added — raw materials, manufacturing labor, wholesale purchase cost, shipping and any other direct expense involved in getting the product ready to sell. Every other pricing calculation on this page starts from an accurate cost price.

What is selling price?

Selling price is the amount a customer actually pays for a product or service. It's built from the cost price plus a profit component, and it's the number that ultimately determines whether a business is sustainable — set it too low and margins evaporate; set it too high and sales volume can suffer.

What is profit?

Profit is simply Selling Price minus Cost Price — the dollar amount left over after covering what it cost to acquire or make the item. Profit can be expressed as a flat amount, or as a percentage using either markup or margin, which is where a lot of pricing confusion begins.

Profit margin vs. markup

Markup expresses profit as a percentage of cost price: Markup = Profit ÷ Cost Price × 100. Margin expresses the exact same dollar profit as a percentage of selling price instead: Margin = Profit ÷ Selling Price × 100. Because the denominators differ, a 50% markup is only a 33.33% margin, and confusing the two is one of the most expensive pricing mistakes a business can make — a retailer aiming for a 40% margin who mistakenly applies a 40% markup will actually earn less profit than intended.

Gross margin

Gross margin is the same margin calculation applied at the business level rather than per item — total revenue minus total cost of goods sold, divided by total revenue. It's a key profitability metric used in financial statements and investor reporting, calculated with exactly the same formula as a single-item margin.

Net profit

Net profit goes a step further than gross profit by also subtracting operating expenses — rent, salaries, utilities, marketing and other overhead — from gross profit. A healthy per-item margin doesn't guarantee a profitable business if operating expenses consume the difference; this calculator focuses on per-item pricing maths, but net profit should always be checked against the full expense picture.

Discount calculations

A discount reduces an original price by a percentage. Discount Amount = Original Price × Discount %, and Final Price = Original Price − Discount Amount. A $500 item at a 15% discount saves $75, bringing the final price to $425. Businesses need to track discounts carefully since they cut directly into the profit built into the original price.

Sales tax calculations

Sales tax adds a percentage on top of a price rather than removing one. Tax Amount = Price × Tax Rate %, and Total Price = Price + Tax Amount. A $200 item at 18% tax adds $36, for a total of $236. Unlike a discount, sales tax doesn't affect the seller's profit directly — it's collected on behalf of the tax authority — but it does affect the final price the customer sees.

Unit price calculations

Unit price divides a total price by a quantity to find the cost per individual item: Unit Price = Total Price ÷ Quantity. A $480 order of 24 units works out to $20 per unit. Unit pricing is essential for comparing bulk deals, wholesale quotes and multi-pack products on a like-for-like basis.

Break-even pricing

Break-even price is the minimum selling price needed to hit a target profit margin on a known cost price. Using the margin-based selling price formula — Selling Price = Cost Price ÷ (1 − Margin ÷ 100) — a $250 cost item with a 30% desired margin needs a minimum selling price of $357.14 to hit that target, not simply $250 × 1.30.

Pricing strategies

Cost-plus pricing sets a price by adding a fixed markup to cost. Value-based pricing sets a price according to what customers perceive the product is worth, independent of cost. Competitive pricing benchmarks against what similar products sell for in the market. Most businesses blend all three depending on the product and the competitive landscape.

Retail pricing

Retailers commonly work backward from a target margin to set shelf prices, using the Selling Price formula above to ensure every item hits the store's target profitability after accounting for typical markdowns, returns and seasonal promotions.

Wholesale pricing

Wholesale prices sit between manufacturing cost and eventual retail price, usually calculated with a lower markup than the final retail markup, since wholesale buyers purchase in bulk and expect a volume discount that retailers then mark up again for individual sale.

Manufacturing costs

Manufacturers need an accurate cost price that includes raw materials, direct labor, and an allocated share of factory overhead before applying any markup or margin — underestimating true production cost is a common source of thin, unsustainable margins.

Dynamic pricing

Dynamic pricing adjusts selling price in real time based on demand, inventory levels, competitor pricing or time-sensitive factors, but every adjustment still needs to be checked against the underlying cost price to avoid accidentally pricing below break-even.

Financial planning and inventory pricing

Financial planning uses margin and markup figures to forecast revenue and profitability across a product line, while inventory pricing decisions — clearance sales, seasonal markdowns, bundle pricing — all rely on the same discount and margin formulas applied consistently across SKUs.

eCommerce pricing

Online sellers juggle product cost, platform fees, shipping cost, payment processing fees and advertising cost, all of which should be folded into an all-in cost price before applying a markup or margin, or the resulting "profit" can be illusory once every fee is accounted for.

Accounting basics and business profitability

Accountants track cost of goods sold, gross profit and gross margin as core profitability metrics on the income statement, using the exact same formulas covered above — the difference from a single-item calculation is simply that the inputs are aggregated across an entire product line or reporting period.

Common pricing mistakes

  • Confusing markup with margin, leading to lower actual profit than intended.
  • Ignoring sales tax when quoting a final customer-facing price.
  • Forgetting to apply a discount before calculating a customer's expected savings.
  • Calculating profit incorrectly by subtracting the wrong base price.
  • Pricing below cost by mistake during promotions or clearance events.
  • Using the wrong quantity when calculating unit price, especially with mixed-unit orders.
  • Rounding intermediate pricing calculations too early, compounding error across many SKUs.
  • Ignoring operating expenses when judging whether a margin is actually profitable for the business.

How the Calculator Works

Four steps from raw cost and price figures to a complete pricing breakdown.

1

Choose a Calculation Mode

Select from selling price, cost price, profit, markup, discount, sales tax, unit price or break-even price.

2

Enter Pricing Information

Type in cost, selling price, a percentage rate, or a quantity — only the fields each mode needs are shown.

3

Automatic Price Calculation

The correct formula is applied instantly, with results and the formula used updating live as you type.

4

Review the Results

See profit, margin, markup, tax or discount amounts clearly broken out, ready to copy into your records.

Pricing Formulas

The exact maths behind every calculation mode.

Selling Price

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

Profit, Markup & Margin

Profit = Selling − Cost
Markup = Profit ÷ Cost × 100
Margin = Profit ÷ Selling × 100

Discount

Discount = Price × Discount %
Final Price = Price − Discount

Sales Tax & Unit Price

Total = Price + (Price × Tax %)
Unit Price = Total ÷ Quantity

Step-by-Step Examples

Eight worked calculations covering every mode.

Example 1 — Selling Price

Cost = $100, Margin = 25% Selling Price = 100 ÷ (1 − 0.25) = $133.33

Example 2 — Cost Price

Selling Price = $250, Margin = 20% Cost Price = 250 × (1 − 0.20) = $200

Example 3 — Profit, Markup & Margin

Cost = $80, Selling = $120 Profit = 120 − 80 = $40 Markup = 40 ÷ 80 × 100 = 50% Margin = 40 ÷ 120 × 100 = 33.33%

Example 4 — Discount

Original = $500, Discount = 15% Savings = 500 × 0.15 = $75 Final Price = 500 − 75 = $425

Example 5 — Sales Tax

Price = $200, Tax = 18% Tax = 200 × 0.18 = $36 Final Price = 200 + 36 = $236

Example 6 — Unit Price

Total = $480, Quantity = 24 Unit Price = 480 ÷ 24 = $20

Example 7 — Markup

Cost = $350, Markup = 40% Selling Price = 350 + (350 × 0.40) = $490

Example 8 — Break-even Price

Cost = $250, Desired Profit = 30% Selling Price = 250 ÷ (1 − 0.30) = $357.14

Quick Reference Tables

Common pricing scenarios at a glance.

CostMarginSelling Price
$10020%$125
$10025%$133.33
$25030%$357.14
$50015%$588.24
DiscountSavings on $100
5%$5
10%$10
15%$15
20%$20
50%$50
MarkupMargin
10%9.09%
25%20%
50%33.33%
100%50%

Benefits of Using This Calculator

Why retailers, freelancers and finance teams rely on it daily.

Eight Calculation Modes

Selling price, cost price, profit, markup, discount, tax, unit price and break-even — all in one tool.

💱

Multi-Currency Support

Display results in USD, EUR, GBP, INR, CAD, AUD, JPY and more.

📊

Interactive Pricing Chart

See cost vs. selling price visualized instantly as an animated bar chart.

Live Calculations

Results and the formula used update instantly as you enter values.

🎯

Adjustable Precision

Choose 0 to 4 decimal places to match your invoicing or reporting format.

📱

Mobile-Friendly

Fully responsive design that works on desktop, tablet and mobile.

Practical Applications

Where price, profit and margin calculations show up across business.

Retail Pricing

Set shelf prices that reliably hit a target profit margin.

Wholesale Pricing

Balance bulk discounts against sustainable per-unit margins.

eCommerce Pricing

Fold platform fees and shipping into cost before setting a price.

Manufacturing Cost Analysis

Track raw materials, labor and overhead in a true cost price.

Accounting

Calculate gross margin and cost of goods sold for financial statements.

Inventory Management

Price markdowns and clearance stock without dipping below cost.

Business Planning

Forecast revenue and profitability across a full product line.

Financial Forecasting

Model how margin or markup changes affect projected profit.

Freelance Pricing

Set project rates that reliably cover cost and desired profit.

Service Pricing

Apply the same margin logic to hourly or project-based services.

Profit Optimization

Test different margin and markup scenarios before committing.

Budget Planning

Estimate costs and expected revenue for upcoming purchases.

Common Mistakes to Avoid

Get accurate pricing results by watching for these errors.

Confusing markup with margin

A 50% markup is only a 33.33% margin — using the wrong one produces less profit than intended.

Ignoring taxes

Quoting a price without factoring in sales tax can surprise customers and misstate true revenue.

Forgetting discounts

Not accounting for a discount before calculating margin overstates actual profit on a sale.

Incorrect profit calculations

Subtracting the wrong base price, or mixing up cost and selling price, produces a meaningless profit figure.

Pricing below cost

Applying a discount or promotion without checking it against cost price can result in a loss-making sale.

Ignoring operating expenses

A healthy item-level margin doesn't guarantee overall business profitability once overhead is included.

Frequently Asked Questions

Common questions about price, profit and margin calculations.

What is a price calculator?

A price calculator applies standard pricing formulas — margin, markup, discount, tax and more — to help set or verify prices quickly and accurately.

What is cost price?

Cost price is the total amount spent to acquire or produce an item before any profit is added.

What is selling price?

Selling price is the amount a customer pays, built from cost price plus a profit component.

What is the difference between markup and margin?

Markup is profit divided by cost price; margin is the same profit divided by selling price — the two percentages are always different for the same sale.

How do I calculate profit?

Subtract cost price from selling price to get the profit amount, which can then be expressed as a margin or markup percentage.

How do discounts work?

Multiply the original price by the discount percentage to find the savings, then subtract that from the original price for the final price.

How is sales tax calculated?

Multiply the pre-tax price by the tax rate to get the tax amount, then add it to the original price for the total.

What is unit price?

Unit price is the total price divided by quantity, giving the cost per individual item in a bulk order.

How do I calculate break-even price?

Divide cost price by (1 − desired margin ÷ 100) to find the minimum selling price needed to hit that margin target.

Which pricing method should I use?

Use margin if you think in terms of "percentage of revenue," and markup if you think in terms of "percentage added to cost" — both describe the same profit differently.

Is this calculator accurate?

Yes. It uses standard financial formulas for pricing, profit, markup, margin, tax and discounts with adjustable decimal precision.

Is it free?

Yes, this calculator is completely free to use with no signup required.

Does it work on mobile?

Yes. The layout and calculator are fully responsive and work on phones, tablets and desktops.

Who should use this calculator?

Retailers, wholesalers, manufacturers, eCommerce sellers, freelancers, accountants and students all benefit from quick, accurate pricing maths.

Why use a Price Calculator?

It removes the risk of manual pricing errors — especially markup/margin confusion — that can silently erode profit across many sales.

Calculate Prices, Profit & Margins Instantly

Quickly calculate selling prices, profits, discounts, taxes, margins and pricing strategies using this free Price Calculator — built for retail, eCommerce, freelancing and financial planning.