Free calculator
Gross margin calculator
Gross margin is revenue minus direct costs, divided by revenue, shown as a percentage; the dollar amount is gross profit.
Result
- Gross profit
- $40,000
- Gross margin
- 40.0%
Formula
Gross margin = (revenue - direct cost) / revenue x 100
When to use it
Use it to compare the economics of products, services, channels, or periods with consistent cost classification.
What it does not prove
The result is only comparable when direct costs are classified consistently. It does not include operating expenses or cash timing.
Worked example
A print shop with $100,000 of quarterly sales
A print shop records $100,000 of revenue for the quarter. Its direct costs, which are paper, ink, and the production staff who run the presses, add up to $60,000. These are the calculator's starting inputs.
- 1Gross profit = 100,000 - 60,000 = 40,000.
- 2Gross margin = 40,000 / 100,000 = 0.40.
- 3Convert to a percentage: 0.40 x 100 = 40.0%.
- 4Read it as: of every $1.00 of sales, $0.40 is left after direct costs to pay for operating expenses and profit.
The calculator shows gross profit of $40,000 and a gross margin of 40.0%.
How to calculate gross margin, step by step
- Take revenue for the period from the profit and loss report, after returns and discounts.
- Add up the direct costs of producing what you sold: materials, direct labor, and similar costs.
- Subtract direct costs from revenue to get gross profit in dollars.
- Divide gross profit by revenue.
- Multiply by 100 and round to one decimal place to show gross margin as a percentage.
Where gross margin sits on the profit and loss report
Gross margin comes from the top of the income statement. Revenue is listed first, then cost of goods sold or cost of services, and the difference is gross profit. Operating expenses such as rent, software, and office salaries come after that line and reduce gross profit to net profit.
That is why gross margin tells you about the economics of the product or service itself, apart from the overhead of running the company. A shop with a healthy gross margin can still lose money if operating expenses are too high.
Consistent classification decides the number
Gross margin is only as good as the line between direct costs and operating expenses. If one month's freight is booked to cost of goods sold and the next month's to general expenses, the percentage will move for no business reason. The bookkeeper's job is to apply the same rule to the same type of cost every time.
Compare periods and products only when they follow one classification. Service businesses should decide whether delivery staff are direct costs and keep that treatment. Put the rule in writing so a new bookkeeper does not change it quietly.
Margin versus markup
Margin and markup are often confused. Margin divides gross profit by revenue. Markup divides gross profit by cost. On the example above, markup would be 40,000 divided by 60,000, which is about 66.7%, while margin is 40.0%. Same business, different ratios, so name which one you mean.
Gross margin also ignores cash timing. Revenue may be recorded before the customer pays, and costs may be recorded before the supplier is paid on the accrual basis. For cash questions, use the cash runway calculator instead.
Gross margin calculator: common questions
How do you calculate gross margin percentage?
Subtract direct costs from revenue to get gross profit, divide that by revenue, and multiply by 100. With $100,000 of revenue and $60,000 of direct costs, gross profit is $40,000 and gross margin is 40.0%.
What is the difference between gross margin and net margin?
Gross margin subtracts only direct costs from revenue. Net margin subtracts all expenses, including rent, payroll for the office, and interest, then divides net income by revenue. Gross margin is normally higher than net margin, because net margin also subtracts operating expenses.
What counts as a direct cost?
Direct costs are costs tied to producing what you sold, such as materials, direct labor, and freight into the business for products. Rent for the office and general software are usually operating expenses. Your accountant can confirm the right line for your business.
Is gross margin the same as markup?
No. Margin is gross profit divided by revenue, while markup is gross profit divided by cost. A product that costs $60 and sells for $100 has a 40.0% margin and a markup of about 66.7%.
Sources
Keep learning
More bookkeeping calculators
Educational information only. Booksmrt provides bookkeeping services, not tax, legal, audit, or investment advice. Confirm material accounting and tax decisions with the appropriate professional.