Profit margin calculator

Enter your price and cost to see gross margin, or enter the margin you want to find the price.

Free, no accountNo watermarkYour details stay in this browser

Nothing you type here is sent to us.

Get the free 7-Day Earn More Plan

One short email a day for 7 days, then one earning idea a week. Free, and you can unsubscribe anytime.

FinanceWrite may earn a commission when you open an account through these links. The tools stay free. Disclosure

Figures used, tax year 2026

Every figure comes from IRS.gov. Checked on November 21, 2026. Estimate only, not tax advice.

FigureValueSource

How profit margin works

Profit margin tells you how much of every dollar of sales you keep. Gross margin counts only the direct cost of what you sold. Net margin also subtracts your other expenses, such as software, shipping and fees.

Gross margin is (revenue minus cost) divided by revenue. If you sell something for $100 that costs you $60, your gross profit is $40 and your gross margin is 40%. If you want a set margin, use the second option in the tool to find the price that gets you there.

What to include

  • Revenue or selling price.
  • Cost of goods or the direct cost of delivering the work.
  • Other expenses, if you want net margin.
  • The margin you want, if you are setting a price.

Common mistakes

  • Mixing up margin and markup. Markup is on cost, margin is on price.
  • Forgetting fees and shipping in the cost.
  • Judging a product on gross margin alone when other expenses are high.
  • Setting a price from a markup when you really need a margin.

Questions people ask

How do I calculate profit margin?

Subtract cost from revenue, divide by revenue, and multiply by 100. Revenue of $100 and cost of $60 is a 40% gross margin.

What is the difference between gross and net margin?

Gross margin counts only direct costs. Net margin subtracts all expenses too.

How do I find the price for a margin I want?

Divide the cost by one minus the margin. For a 40% margin on a $60 cost, the price is 60 / 0.6 = $100.

Is margin the same as markup?

No. A 40% margin is a 66.7% markup on cost.

More free tools

See all free tools or try one of these next.