Gross Margin Calculator

Calculate gross profit and gross margin from revenue and cost of goods sold.

What the Gross Margin Calculator does

Gross margin measures what proportion of revenue survives the direct cost of producing it. It is the single most diagnostic number in a business: it determines how much is available to cover overheads and still leave a profit.

Formula

  • Gross profit = Revenue − COGS
  • Gross margin % = Gross profit ÷ Revenue × 100
  • Markup % = Gross profit ÷ COGS × 100

Inputs explained

InputUnitRequiredNotes
Revenueselected currencyYesAccepts more than 0.
Cost of goods soldselected currencyYesAccepts 0 or more.
Units soldnumberOptionalOptional — shows per-unit figures. Accepts 0 or more.
Currencyone of 10 optionsOptional

How to use it

  1. Choose Currency.
  2. Enter Revenue and Cost of goods sold.
  3. Optionally add Units sold.
  4. Select Calculate.

Worked example

$800,000 revenue with $320,000 of direct costs.

Revenue
800000
COGS
320000

Gross profit $480,000, a 60% gross margin and a 150% markup on cost.

Frequently asked questions

What belongs in COGS?

Only costs that scale directly with production — materials, direct labour, shipping, payment processing, hosting for a per-customer service. Rent and salaries for general staff are operating expenses.

Related calculators