Free Online Margin and Profit Calculator.

Use our free margin and profit calculator to work out gross profit, profit margin and markup from selling price and cost price. Instant and mobile friendly.

Use Our Margin & Profit Calculator Below

Margin and Profit Calculator

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

Gross profit
Profit margin
Markup
Add your figures above to see the result.

Use this margin and profit calculator to work out gross profit, profit margin and markup from your selling price and cost price. Enter both figures above to get an instant result.

This calculator is useful for retailers, e-commerce businesses, service providers, wholesalers and anyone who needs to price products or services accurately.

Profit margin is the percentage of your selling price that remains as profit after costs are deducted.

It helps you understand how much money you keep from each sale before other business expenses are considered.

This calculator uses the following formulas:

Gross Profit = Selling Price – Cost Price

Profit Margin = (Gross Profit ÷ Selling Price) × 100

Markup = (Gross Profit ÷ Cost Price) × 100

These three figures are related, but they are not the same.

  1. Enter your selling price.
  2. Enter your cost price.
  3. The calculator updates instantly and shows:
    • gross profit
    • profit margin
    • markup

Use the Reset button to clear the inputs and start again.

If:

  • selling price = £100
  • cost price = £60

Then:

Gross Profit = £100 – £60 = £40

Profit Margin = (£40 ÷ £100) × 100 = 40%

Markup = (£40 ÷ £60) × 100 = 66.67%

So the sale produces:

  • £40 gross profit
  • 40% profit margin
  • 66.67% markup

Margin and markup are often confused, but they are calculated differently.

Margin is based on the selling price.

Markup is based on the cost price.

This means markup is usually higher than margin for the same product.

For example:

  • cost price = £50
  • selling price = £75
  • profit = £25

Then:

  • margin = 33.33%
  • markup = 50%

Knowing your margin helps you:

  • price products more accurately
  • protect profitability
  • compare product performance
  • plan discounts without losing money
  • understand how cost changes affect earnings

A product can have healthy revenue but still poor margin if the cost base is too high.

This calculator is useful for:

  • product pricing
  • retail and e-commerce
  • wholesale price setting
  • service pricing
  • quoting work
  • analysing discounts and promotions

It is especially helpful when you need a quick check before changing prices.

If your margin is too low, you may be able to improve it by:

  • raising prices carefully
  • reducing supplier costs
  • increasing average order value
  • offering bundles
  • reducing waste
  • improving operational efficiency
  • focusing on higher-margin products or services

Even small pricing changes can make a noticeable difference to margin.

Profit margin is calculated by dividing gross profit by selling price, then multiplying by 100.

Profit is the money left after subtracting cost from selling price. Margin is that profit expressed as a percentage of selling price.

Markup is the percentage added to cost price to arrive at the selling price.

Markup is based on cost, while margin is based on selling price. Because of this, the percentage figures are different.

Yes. If your cost price is higher than your selling price, the result is a loss, which gives a negative margin.

No. Gross profit only subtracts direct costs. Net profit also takes account of overheads, tax and other business expenses.

Check out our other calculators:
ROI
Conversion Rate
Customer Acquisition Cost
Customer Lifetime Value