Free Margin, Markup and Price Index Calculator (2026)

Free Margin, Markup and Price Index Calculator (2026)
Free tools

Three free pricing calculators in one place. The margin calculator turns cost and price into profit, margin and markup. The markup calculator finds the selling price from your cost and a target markup or margin. The price index calculator shows how your price compares with competitors, and lets you leave out competitors that are out of stock. Everything is calculated in your browser; nothing is stored.

Margin calculator

Enter your cost and selling price to get profit, gross margin and markup.

40.00Profit per unit
40.0%Gross margin
66.7%Markup

Markup calculator

Enter your cost and a target markup or margin to get the selling price.

90.00Selling price
30.00Profit per unit
33.3%Resulting margin

Price index calculator

Enter your price and your competitors’ prices for the same product. Untick competitors that are out of stock.

100.7Price index
247.33Average competitor price
239.00Lowest competitor price

You are about at market level: within 3% of the average competitor price. You are 4.2% above the cheapest competitor and rank 3 of 4 by price.

The calculators work with any currency; use the same currency and the same VAT treatment for every price. Results are rounded for display.

Formulas

Margin vs markup: what is the difference?

Margin and markup both describe profit, but against a different base. Margin is profit as a percentage of the selling price, while markup is profit as a percentage of the cost. For the same product, markup is always higher than margin: a product that costs 60 and sells for 100 has a 40% margin and a 66.7% markup.

MarkupEquals marginPrice for a cost of 100
10%9.1%110
20%16.7%120
25%20.0%125
33.3%25.0%133.33
50%33.3%150
66.7%40.0%166.67
100%50.0%200
150%60.0%250
200%66.7%300
300%75.0%400

How to calculate profit margin

Margin % = (Price minus Cost) divided by Price, multiplied by 100

Example: a product costs 60 and sells for 100. Profit is 40, and 40 divided by 100 is 0.40, so the gross margin is 40%. This is gross margin per unit; it does not include shipping, payment fees, marketing or overheads, which you should add to cost if you want a net figure.

How to calculate markup and selling price

Markup % = (Price minus Cost) divided by Cost, multiplied by 100
Price from markup = Cost multiplied by (1 plus Markup)
Price from margin = Cost divided by (1 minus Margin)

Example: with a cost of 60 and a target markup of 50%, the price is 60 multiplied by 1.5, which is 90. With the same cost and a target margin of 50%, the price is 60 divided by 0.5, which is 120. Confusing the two is one of the most common pricing mistakes: a 50% markup gives only a 33.3% margin.

Converting between markup and margin

Margin = Markup divided by (1 plus Markup)
Markup = Margin divided by (1 minus Margin)

How to calculate a price index

Price index = Your price divided by the average competitor price, multiplied by 100

A price index of 100 means your price equals the market average, above 100 means you are more expensive and below 100 means you are cheaper. Two details make the index far more useful:

  • Leave out out-of-stock competitors. A competitor that cannot sell today does not set the market price. In the default example above, including the out-of-stock seller would move the index from 100.7 to 102.6 and could lead to an unnecessary price cut.
  • Compare the same product. A different size, bundle or variant gives a misleading index, which is why price monitoring tools put so much effort into product matching.

Read the full guide on how to calculate a competitor price index, including weighted indexes across many products.

Next step

From one calculation to every product, every day

A calculator answers the question for one product today. Competitor prices keep moving: in a 2026 PriceRest study of 261 online stores in 24 countries, 46% of products changed price within 30 days, typically every 6 days. Price monitoring software keeps your price index, margins and competitor prices up to date automatically for your whole catalog. See what price monitoring is or the price monitoring glossary.

FAQ

Frequently asked questions

What is the difference between margin and markup?

Margin is profit as a percentage of the selling price, and markup is profit as a percentage of the cost. A product that costs 60 and sells for 100 has a profit of 40, a margin of 40% and a markup of 66.7%. Markup is always higher than margin for the same product.

How do you calculate profit margin?

Subtract the cost from the selling price, divide the result by the selling price and multiply by 100. For example, a price of 100 and a cost of 60 give a profit of 40 and a gross margin of 40%.

How do you calculate a selling price from markup?

Multiply the cost by one plus the markup percentage. For example, a cost of 60 with a 50% markup gives a selling price of 90. To reach a target margin instead, divide the cost by one minus the margin, so a 50% margin on a cost of 60 gives a price of 120.

How do I convert markup to margin?

Divide the markup by one plus the markup. A 50% markup equals a margin of 0.5 divided by 1.5, which is 33.3%. To convert margin to markup, divide the margin by one minus the margin, so a 40% margin equals a 66.7% markup.

How do you calculate a price index?

Divide your price by the average price of your competitors for the same product and multiply by 100. A result of 100 means you are at market level, above 100 more expensive and below 100 cheaper. Leave out competitors that are out of stock, because they do not set the price customers can actually pay today.

Can I use these calculators with any currency?

Yes. The calculators work with any currency as long as all prices use the same currency and the same tax treatment, either all including VAT or all excluding it. Everything is calculated in your browser and nothing is stored.

Keep your price index up to date automatically

PriceRest tracks competitor prices, stock and your price position every day. 14-day free trial, no credit card required.

Start Free Trial

Request a personalized demo of PriceRest

We look forward to showing you how our platform allows you to optimize the pricing, execution, and measurement initiatives that matter most to your brand and products.

It is Free!

What can I expect?

  • A brief conversation to assess what PriceRest can do to help your pricing strategy
  • Live product demo with insight into how to get the most benefit from PriceRest
  • Discuss your prices KPIs to determine the best path forward for your business
  • No commitment required

    Pricing Insights ⭐

    How to Monitor B2B and Dealer Prices Behind a Login (2026)
    How to monitor B2B, dealer, wholesale and member prices behind a login: use cases, 6 steps, what to capture, legal rules and tools that support it.
    What Is PriceRest? Features, Pricing and How It Works (2026)
    PriceRest is AI-powered price monitoring and dynamic pricing software. See all 12 capabilities, plans from $49, coverage in 64 countries and how it works.
    How AI Shopping Agents Compare Prices (2026): What Retailers Need to Know
    How AI shopping agents from Google, ChatGPT and Shopify compare prices, what changed in 2025-2026, and a 10-step checklist to get your store chosen.
    How to See Competitor Prices on Google Shopping (2026)
    See competitor prices on Google Shopping three ways: manual checks, Merchant Center benchmarks and price gap, or a monitoring tool. Steps, limits and tips.
    Benefits of Dynamic Pricing: 9 Advantages, 6 Disadvantages and When It Pays Off (2026)
    Why dynamic pricing matters: 9 benefits, 6 disadvantages, when it pays off and the margin math behind it, with 2026 data from 261 online stores.
    Comments are closed.