What is the gross profit formula and how do you calculate gross profit percentage?

The gross profit formula subtracts cost of goods sold from revenue before operating expenses. Gross profit percentage, commonly called gross margin, divides that result by revenue.

Gross profit and gross profit percentage formulas

Gross profit = Revenue − Cost of goods soldGross margin = (Gross profit ÷ Revenue) × 100

One period’s gross profit and margin

The default values use one revenue total and one cost-of-goods total. The output separates the currency spread from the percentage margin.

Illustrative inputs; currency amounts below use USD. Rates and prices are assumptions, not live quotes.

Revenue
$50,000.00
Cost of goods sold
$32,000.00

Step-by-step calculation

  1. Gross profit = revenue 50,000 − cost of goods sold 32,000 = 18,000.
  2. Gross margin = 18,000 ÷ 50,000 × 100 = 36%.
  3. COGS ratio = 32,000 ÷ 50,000 × 100 = 64%. The two percentages sum to 100%.

Intermediate figures are rounded for reading. Results use the full calculation precision.

Gross profit$18,000.00
Gross margin36%
COGS as share of revenue64%
Markup on cost56.25%

Money available versus percentage efficiency

Gross profit indicates the money available to cover operating expenses and profit; gross margin makes businesses or periods of different sizes easier to compare.

Keeping cost classifications consistent

Payroll, rent and marketing may be operating expenses rather than cost of goods sold. Mixing classifications can make gross margin incomparable across periods.

  • Revenue and cost of goods sold cover the same reporting period.
  • The user applies a consistent cost classification.
  • Operating expenses, tax and financing costs are excluded.

Calculations related to gross profit

The following tools examine neighbouring parts of the same calculation without changing the inputs or assumptions used above.

References

Sources and conventions

Quick answers

Frequently asked questions

What is the gross profit formula?

Gross profit equals revenue minus cost of goods sold.

How do I calculate gross profit percentage?

Divide gross profit by revenue and multiply by 100. This percentage is commonly called gross margin.

Is gross profit the same as net profit?

No. Gross profit deducts cost of goods sold only; net profit normally includes additional operating and other expenses.

Why are gross margin and markup different?

Gross margin divides profit by revenue, while markup divides profit by cost.

Calculation method and limitations · Report an error

Educational content only. This guide is not financial advice.