Skip to content

Gross Margin Calculator

COGS

Result

Gross Profit200000
Gross Margin (%)40
Markup on Cost (%)66.6666666667
↗ Finance

Gross Margin Calculator — free online calculator.

Formula

Gross Profit = Revenue − COGS; Gross Margin = Gross Profit / Revenue × 100; Markup = Gross Profit / COGS × 100
  • Gross Margin Calculator calculates its result from Revenue, Cost of Goods Sold (COGS). It uses the formula Gross Profit = Revenue − COGS; Gross Margin = Gross Profit / Revenue × 100; Markup = Gross Profit / COGS × 100. Change any input to recalculate the result instantly.
  • The main inputs are Revenue, Cost of Goods Sold. Enter them in the units and format shown in the calculator.
  • Use monetary amounts, rates and time periods exactly as labeled; the result reflects the assumptions entered on this page.
  • Changing any input above recalculates the result with the same calculation engine used by this page.

Example: Gross Margin

Inputs
  • Revenue: 500000
  • Cost of Goods Sold: 300000 COGS

Using Revenue = 500000, Cost of Goods Sold (COGS) = 300000, the calculated result is 66.6666666667.

Sample result: Calculating…

Frequently asked questions

What does the Gross Margin calculate?

Gross Margin Calculator — free online calculator.

Which values should I enter?

Enter Revenue, Cost of Goods Sold using the units and format shown beside each field.

What formula does this calculator use?

The calculator uses the following relationship: Gross Profit = Revenue − COGS; Gross Margin = Gross Profit / Revenue × 100; Markup = Gross Profit / COGS × 100.

Why might my result differ from another source?

Results can differ when another source uses different units, rounding rules, conventions or assumptions. Compare the inputs and definitions before comparing results.

Does the result update automatically?

Yes. Changing an input updates the result using the same calculation engine shown on this page.

Page information

Updated: October 10, 2026