Sales

Margin Calculator

Enter your revenue and cost to get the gross margin percentage, the profit in cash, and the equivalent markup.

  • Free
  • No sign-up
  • Updated for 2026

Revenue & cost

$
$

Enter revenue and cost to see margin, profit and markup.

Worked example

With these example inputs:

  • Revenue$1,000
  • Cost$600

Gross margin: 40.0%

  • Profit$400
  • Markup66.7%

Add this calculator to your site

Free to embed. Copy the snippet below, it drops the live calculator straight into any page.

What this margin calculator does

This calculator finds your profit margin. You enter your cost and selling price. The tool then shows the profit. It also shows the margin as a percent. It reveals how much each sale keeps. You can test different prices and costs. The result guides your pricing.

What profit margin is

Profit margin is profit as a percent of price. It shows what share of revenue you keep. A higher margin means more profit per sale. A low margin leaves little room. It is a key measure of health. Investors and owners watch it closely. It shapes how a business survives.

Margin versus markup

Margin and markup are often confused. Margin is profit over the selling price. Markup is profit over the cost. They use the same profit figure. But they divide by different bases. So they give different percentages. Know which one you are using.

Gross versus net margin

Gross margin uses the direct cost only. It covers the cost of the product. Net margin takes all costs into account. That includes rent, wages and tax. Net margin is always lower than gross. It shows the true bottom line. Both numbers tell a useful story.

Why margin matters

Margin shows if a business is sustainable. A thin margin can vanish fast. A healthy margin absorbs surprises. It funds growth and pays the bills. It also guides your pricing choices. A price below cost cannot last. Margin is the heartbeat of profit.

The cost, price and profit

Three figures shape your margin. The cost is what you pay to make it. The price is what the customer pays. The profit is the gap between them. Margin turns that gap into a percent. Change any figure and the margin shifts. The calculator links them for you.

Raising your margin

You can raise margin in two ways. Cut the cost of your product. Or raise the price you charge. Each lifts the profit per sale. But a higher price can lower demand. A lower cost must not hurt quality. Balance the two with care.

How to use it

Enter your cost per item. Add the price you sell it for. Read the profit and the margin. Then try a higher price and compare. Watch the margin improve. Test a lower cost as well. Use it to set a smart price.

A healthy margin by industry

A good margin varies by industry. Grocery stores run on thin margins. Software can enjoy very high ones. There is no single right number. Compare yours to similar businesses. A margin far below peers is a warning. Aim for a healthy figure for your field.

Common mistakes to avoid

A common mistake is confusing margin and markup. The two give different numbers. Another is ignoring indirect costs. A gross margin can look healthy alone. Some price below their true cost. Others forget tax in the figure. A careful sum avoids these traps.

A final tip

Use margin to price with confidence. Know whether you mean margin or markup. Include all your costs, not just the obvious. Compare your margin to your industry. Aim for a figure that funds growth. Review it as your costs change. A healthy margin keeps you in business.

Frequently asked questions

What is the difference between margin and markup?

Margin is profit as a share of the selling price. Markup is profit as a share of the cost. The same profit gives a smaller margin than markup.

How is gross margin calculated?

Gross margin is revenue minus cost, divided by revenue, shown as a percentage. It tells you how much of each sale is left after the cost of the goods.

What is a good profit margin?

It varies widely by industry, so compare against similar businesses rather than a single benchmark.

How do I increase my margin?

Raise prices, lower the cost of goods, or shift your sales mix toward higher-margin products.

What is the difference between gross and net margin?

Gross margin covers only the cost of goods sold, while net margin also subtracts all other expenses.