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 ⭐

    MAP Monitoring Software Advantages: 10 Benefits, Limits and Cost vs Manual Checks (2026)
    The 10 advantages of MAP monitoring software, its limits and a free calculator comparing the cost of manual MAP checks with software.
    How to Choose Online Sales Channels: Marketplaces, Own Store and Google Shopping (2026)
    Choose where to sell online with data: 8 criteria for marketplaces, how to measure competition with price data and a free channel margin calculator.
    Were Black Friday 2026 Discounts Real? What 3,470 Prices Show
    Quick answer Mostly not. In PriceRest data from 3,470 product listings in the US, the UK and the EU, 91% were not discounted at all on Black Friday 2026 compared with their normal price in early November, and not one of the 227 listings that showed a crossed-out price on …
    Real-Time Price Monitoring: How Often Should You Check Competitor Prices? (2026)
    Real-time price monitoring explained: how it works, how fast online prices change and how often to check competitor prices, with a free frequency tool.
    How to Run a Successful Online Store: 20 Rules for Pricing, Checkout, Delivery and Growth (2026)
    Quick answer A successful online store gets five things right: a market it can win, prices that stay competitive without losing margin, a fast site with a short checkout, reliable delivery and returns, and customers who come back. The 20 rules in this guide turn those into concrete actions, from …
    Comments are closed.