Skip to main content

Calcu.fit

Margin calculator: profit margin, markup, and selling price

Use this free margin calculator to determine profit margin, markup, selling price, cost price, or profit. Simply enter any two values—for example, the cost price and the selling price, or the cost price and your desired margin—and the calculator will compute the remaining values. This tool is useful for setting product prices, checking profitability, and planning discounts. No registration is required.

Margin calculator
Currency

What do you know?

Optional

%

Fixed costs are things like rent and salaries. They are used to find your break-even point.

Gross margin
–

Margin vs markup

Margin is profit as a share of the selling price. Markup is profit as a share of the cost. A 50% markup is only a 33.3% margin.

Price needed for each margin

How to use this margin calculator

Choose what you want to find, then enter the values ​​you know:

  • Calculate the margin: enter the cost price and the selling price.

  • Calculate the selling price: enter the cost price and your target margin (or profit percentage).

  • Calculate the cost price: enter the selling price and the margin.

  • Calculate the profit: enter the cost price and the margin, or the cost price and the selling price.

Click Calculate to view the margin, markup, profit, and selling price in relation to one another.

What you will see in your results

  • Gross profit in dollars

  • Profit margin as a percentage of the selling price

  • Markup percentage relative to the cost price

  • Selling price and cost price

  • Comparison between margin and markup percentage

What is the profit margin?

The profit margin is the portion of the selling price that you retain as profit. It indicates how much of every euro (or dollar) in sales revenue remains after the costs of the product have been covered.

Profit = Selling Price − Costs

Margin (%) = (Selling Price − Costs) ÷ Selling Price × 100

A margin of 40% means that for every 100 dollars in sales revenue, 40 dollars is profit, while 60 dollars covers the costs.

What is markup?

A markup is the amount added to the cost price to arrive at the selling price. It is based on the cost price, not on the selling price.

Markup (%) = (Selling price − Cost price) ÷ Cost price × 100

Margin versus markup: the key difference

These two are often confused, but they are not the same. For any given sale, the markup is always higher than the margin, because it is based on a smaller figure (the cost price).

Margin

Markup

Based on

Selling price

Cost

Formula

Profit ÷ Selling price

Profit ÷ Cost

Answers

“How much of the price is profit?”

“How much did I add to the cost?”

Cannot exceed

100%

Can be over 100%

Margin and markup side by side

Cost price $60, selling price $100:

  • Profit: $40

  • Margin: 40% ($40 ÷ $100)

  • Markup percentage: 66.67% ($40 ÷ $60)

Converting between margin and markup

Markup

Equals margin

25%

20%

50%

33.3%

100%

50%

Margin

Equals markup

20%

25%

30%

42.9%

40%

66.7%

50%

100%

Formulas:

  • Margin = Markup ÷ (1 + Markup)

  • Markup = Margin ÷ (1 − Margin)

A costly mistake to avoid

If you want a 30% margin but apply a 30% markup, you will fall short.

  • Cost price $60 with a 30% markup: selling price = $60 × 1.30 = $78. Margin = $18 ÷ $78 = 23.1%, not 30%.

  • Cost price $60 with a 30% margin: selling price = $60 ÷ (1 − 0.30) = $85.71. Margin = 30%.

The difference of $7.71 per sale adds up quickly. If you are aiming for a specific margin, use the margin formula.

Margin formulas

To find

Formula

Profit

Selling price − Cost

Margin

(Price − Cost) ÷ Price

Markup

(Price − Cost) ÷ Cost

Selling price (based on cost price and margin)

Cost ÷ (1 − Margin)

Selling price (based on cost price and markup)

Cost × (1 + Markup)

Cost (from price and margin)

Price × (1 − Margin)

Margin Calculator Examples

Example 1: Determining the margin

A product costs $60 and is sold for $100.

  • Profit: $40
  • Margin: 40%
  • Markup: 66.67%

Example 2: Determining the selling price based on a target margin

Your item costs $60 and you want a margin of 30%.

  • Selling price: $60 ÷ (1 − 0.30) = $85.71
  • Profit: $25.71

Example 3: Retail prices with a markup

A store purchases an item for $50 and applies a 20% markup.

  • Selling price: $50 × 1.20 = $60.00
  • Profit: $10
  • Margin: 16.7%

To achieve a 20% margin on the same item, the price would be $50 ÷ 0.80 = $62.50.

Example 4: Pricing including fees

A product costs $40. You want to retain a 35% margin after deducting payment processing fees, where these fees amount to 3% of each sale.

  • Selling price: $40 ÷ (1 − 0.35 − 0.03) = $64.52
  • Costs: approximately $1.94
  • Profit after deducting costs: approximately $22.58, which is 35% of the price

If you do not take costs into account, you would set a price of $61.54, and your actual margin would drop to approximately 32%.

Example 5: How a discount affects your margin

Cost price $60, selling price $100, margin 40%. You offer a 10% discount.

  • New price: $90
  • New profit: $30 (a decrease of $40)
  • New margin: 33.3%

A 10% price reduction lowers the profit per sale by 25%. To achieve the same total profit, you would need to sell approximately 33% more units. Discounts are more costly than they appear at first glance.

Example 6: Operating margins based on a simple income statement

A company has a revenue of $250,000.

Line

Amount

% of revenue

Revenue

$250,000

100%

Cost of goods sold

$150,000

60%

Gross profit

$100,000

40% (gross margin)

Operating expenses

$70,000

28%

Operating profit

$30,000

12% (operating margin)

Interest and taxes

$12,000

4.8%

Net profit

$18,000

7.2% (net margin)

The three margins show where the money goes. Use our profit margin calculator for a more in-depth analysis.

Types of Margin

  • Gross margin: (Revenue − Cost of goods sold) ÷ Revenue. Represents profit before overhead costs.
  • Operating margin: Operating profit ÷ Revenue. Includes expenses such as rent, salaries, and marketing.
  • Net margin: Net profit ÷ Revenue. The final result after deducting all expenses, interest, and taxes.
  • Contribution margin: (Price − Variable costs) ÷ Price. Used for break-even analyses and pricing decisions.

This calculator calculates the gross margin for a single product. Use the other margin metrics to get a complete picture of your business.

What is a good profit margin?

There is no single, definitive answer, as margins vary significantly by sector. Some businesses, such as supermarkets, operate with tight margins and generate their profit through sales volume. Others, like software companies, may command high margins. Compare your margin against those of similar businesses in your sector and track how your own margin evolves over time. A margin considered ‘good’ for one company might be too low for another.

Why the margin matters

  • Pricing: indicates the lowest price point at which your target profit can still be achieved.
  • Profitability: reveals which products generate a profit and which do not.
  • Discounting decisions: shows how much room there is to lower prices.
  • Growth: healthy margins provide the financial flexibility for hiring staff, marketing, and developing new products.
  • Valuation and lending: investors and lenders look closely at margins.
  • Cost control: a declining margin may point to rising costs or issues with pricing.

Ways to improve your margin

  1. Increase prices carefully, based on the value provided and market research.
  2. Reduce your costs. Negotiate with suppliers, purchase in larger quantities, and minimize waste.
  3. Adjust your product mix and promote items with higher profit margins.
  4. Bundle products to increase the average order value.
  5. Eliminate or limit discounts, as these directly reduce profit.
  6. Decrease the number of returns and instances of damage.
  7. Improve efficiency in production, shipping, and labor.
  8. Evaluate cost items, such as fees for payment processing, marketplaces, and shipping.
  9. Remove loss-making products if they cannot be made profitable.

Do not forget the costs that are not included in the product costs

A gross margin considers only the cost price of the product. Before concluding that a price is “profitable,” you must take the following into account:

  • Shipping and packaging
  • Payment processing and marketplace fees
  • Returns and refunds
  • Marketing and advertising
  • Rent, salaries, and software
  • Taxes

The calculator displays the margin based on the figures you enter; therefore, be sure to include all the costs you want to have factored in.

Margin calculator vs margin trading

Some people who search for “margin calculator” are looking for a tool for margin trading. That is a different concept:

  • In business, the margin is the portion of the selling price that remains as profit.
  • In trading, the margin is the amount you put up as collateral to borrow funds from a broker; this increases both potential profit and potential loss. Related terms include ‘initial margin’, ‘maintenance margin’, ‘leverage’, and ‘margin calls’.

Trading on margin carries high risks, including the possibility of losing more than your initial investment. This calculator is not intended for trading purposes. Please consult your broker’s margin requirements for such calculations.

Margin calculator versus other tools

  • Profit margin calculator: calculate gross margin, operating margin, and net margin based on revenue and costs.
  • Break-even calculator: determine the revenue needed to cover your costs.
  • Discount calculator: calculate sale prices and savings.
  • Percentage calculator: calculate percentage changes and the percentage of a number.
  • ROI calculator: measure the return on an investment.
  • Sales tax calculator: add tax to a price or remove it.

Frequently Asked Questions (FAQ)

How do I calculate the profit margin?

Subtract the cost price from the selling price, divide the result by the selling price, and multiply by 100. For a sale of $100 with a cost price of $60, the margin is 40%.

Margin is profit expressed as a percentage of the selling price. Markup is profit expressed as a percentage of the cost price. For any given sale, the markup is always higher than the margin.

Divide the cost price by (1 − margin). With a cost price of $60 and a margin of 30%, the price is $60 ÷ 0.70 = $85.71.

Multiply the cost price by (1 + markup percentage). With a cost price of $60 and a markup of 30%, the price is $78.

Margin = markup ÷ (1 + markup). A markup of 50% corresponds to a margin of 33.3%.

Markup = Margin ÷ (1 − Margin). A margin of 20% corresponds to a markup of 25%.

No. The margin is based on the selling price and therefore cannot exceed 100%. A markup, however, can be more than 100%.

This depends on your sector, business model, and costs. Compare yourself to similar companies and track your own progress over time.

The gross margin takes into account only the cost of the goods sold. The net margin subtracts all other expenses, interest, and taxes from that figure.

They reduce the profit per sale. A 10% discount on a product with a 40% margin brings the margin down to approximately 33%; to achieve the same total profit, you would then need to sell about a third more units.

This includes the costs you enter. Add fees, shipping costs, and any other expenses to the cost field if you want them to be taken into account.

Yes. It is free, requires no registration, and has no restrictions.

It uses standard formulas for margin and markup and is accurate based on the figures you enter. Please consult a qualified professional regarding tax or accounting decisions.

Disclaimer

This calculator is intended solely for educational purposes and estimation; it does not constitute accounting, tax, or financial advice. The results depend on the data you enter and may not account for all business expenses. Please consult a qualified professional before making decisions regarding pricing, accounting, or taxes.