Home › Business › Profit Margin Calculator

Profit Margin and Markup Calculator

Enter your cost and selling price to get profit, margin and markup. Add a target margin to see the price that achieves it.

$
$
%

Gross margin

—

Markup
—
Profit per unit
—
Price for target margin
—

Tips for using the profit margin calculator

  • Price from target margin, not markup, if your financial goals are set as margins.
  • Include shipping, packaging and payment fees in cost.
  • Typical gross margins vary widely: groceries run about 25% to 30%, software often 70% to 90%.

How the profit margin calculator works

Margin and markup both describe profit, but against different bases. Margin is profit as a share of the selling price; markup is profit as a share of cost. Mixing them up is a common pricing mistake.

Profit = Price − Cost
Margin = Profit ÷ Price
Markup = Profit ÷ Cost
Price for target margin = Cost ÷ (1 − margin)

A 50% markup is only a 33.3% margin, and a 50% margin requires a 100% markup. Margin can never reach 100%, while markup has no upper limit. Gross margin uses only the direct cost of the goods; net margin would also subtract overhead, salaries and taxes.

Gross, operating and net margin

  • Gross margin: (revenue − cost of goods sold) ÷ revenue. Shows whether each sale is priced well. This is what the calculator computes.
  • Operating margin: also subtracts operating expenses such as rent, salaries and marketing.
  • Net margin: what is left after everything, including interest and taxes.

A healthy gross margin can still produce a loss if overhead is too high, so track all three as a business grows.

What is a "good" margin?

It depends heavily on the industry. Grocery stores often run net margins of only a few percent and rely on volume, while software companies can have gross margins well above 70%. Compare yourself with businesses of a similar model, and watch your own trend over time.

Why discounts are expensive

On a product with a 40% gross margin, a 10% discount cuts profit per sale from $40 to $30 on a $100 item. To earn the same gross profit you would need to sell about 33% more units. The formula is: extra volume needed = discount ÷ (margin − discount). Run this before every promotion.

Raising margin

  • Raise prices modestly: a small price increase drops straight to profit if volume holds.
  • Lower unit costs: negotiate with suppliers, order in larger batches, or reduce packaging and shipping costs.
  • Change the mix: promote higher-margin products and bundles.
  • Cut payment and platform fees: marketplace and card fees are part of the cost of each sale.

Common mistakes

  • Pricing with a markup percentage while thinking in margin, which leaves you with less profit than planned.
  • Leaving shipping, packaging or transaction fees out of cost.
  • Ignoring returns and refunds, which reduce effective margin.

Sources

Worked example

An item costs $60 and sells for $100. Profit is $40, the margin is 40% and the markup is 66.67%. To reach a 50% margin on the same item, you would need to price it at 60 ÷ 0.5 = $120.

Related guide

Frequently asked questions

What is the difference between margin and markup?

Margin divides profit by price; markup divides profit by cost. A $40 profit on a $100 sale is a 40% margin and a 66.7% markup.

How do I convert markup to margin?

Margin = Markup ÷ (1 + Markup). A 25% markup is a 20% margin.

What is a good profit margin?

It depends on the industry. Compare with peers in your sector.

How do I price for a target margin?

Divide cost by (1 − target margin). For a 40% margin on a $30 cost, price at $50.

Related calculators