Microeconomics

Gross Margin Calculator

Enter revenue and cost of goods sold to find your gross margin, the share of each sales dollar left after the direct cost of what you sold.

  • Free
  • No sign-up
  • Updated for 2026

Revenue & COGS

$
$

Enter revenue and cost of goods sold to see gross margin.

Worked example

With these example inputs:

  • Revenue$1,000
  • Cost of goods sold$600

Gross margin: 40.0%

  • Gross 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 gross margin calculator does

This calculator finds your gross margin. You enter your revenue and cost of goods. The tool then shows the margin as a percent. It reveals the profit after direct costs. This is a key profitability measure. You can plug in other values. The result helps you set prices.

What gross margin is

Gross margin is profit after direct costs. It is revenue minus the cost of goods. It is shown as a percent of revenue. It comes before other running costs. It shows what each sale leaves over. It funds your overheads and profit. It is a core retail measure.

How it is calculated

The steps are simple to follow. You take your revenue minus cost of goods. Then you divide by your revenue. You multiply the result by one hundred. That gives the gross margin. The calculator works it out for you. The higher the percent, the better.

Gross margin versus markup

Gross margin is based on the selling price. Markup is based on the cost. They use the same two numbers. But the base is different. So the percentages differ. Margin is always the lower one. Do not confuse the two.

Gross margin versus net margin

Gross margin counts only direct costs. Net margin counts every cost. Gross margin comes first. Net margin is the final figure. Gross margin is always higher. It shows the room before overheads. Use both for a full picture.

Why gross margin matters

Gross margin shows your pricing power. It reveals the profit in each sale. A higher margin funds more overheads. It leaves more room for profit. It can absorb a price cut. It is vital for healthy pricing. Watch it alongside your sales.

A healthy gross margin

A healthy margin varies by industry. Some sectors run on thin margins. Others enjoy much fatter ones. Compare against your own past first. Then compare with your field. A rising margin is a good sign. A falling one deserves attention.

How to use it

Enter your revenue. Add your cost of goods sold. Read your gross margin as a percent. Then try a lower cost figure. See how the margin improves. Compare a few products. Use it to set your prices.

Improving your gross margin

You can lift your margin in many ways. Raise your prices where you can. Lower your cost of goods. Negotiate better with suppliers. Cut waste in production. Focus on your high-margin lines. Small gains can add up fast.

Common mistakes to avoid

A common mistake is confusing margin with markup. They are not the same. Another is comparing across industries. Margins vary a lot by sector. Some forget hidden direct costs. Others chase sales at any margin. Knowing the figure helps you sidestep them.

A final tip

Track your gross margin on every product. Know the difference from markup. Include all your direct costs. Do not chase sales at a thin margin. Compare it within your own industry. Look for ways to cut costs. A healthy margin protects your profit.

Frequently asked questions

What is gross margin?

Gross margin is revenue minus the cost of goods sold, divided by revenue, as a percentage. It shows profitability before operating expenses like rent and salaries.

How is gross margin different from markup?

Margin measures profit against the selling price, while markup measures it against cost. The same dollar profit gives a lower margin percentage than markup.