This weekend — through Sunday at 11:59 PM: BUNDLE-NOV21 takes 10% off the Practice in a Box + Everything Vault bundle. VAULT-NOV21 takes 15% off the Everything Vault. WEEKEND15 takes 15% off everything else, and the new Close the Month + Close the Year bundle is $149.
Browse templates →

How to Calculate Gross Profit Margin

Gross profit margin answers one question: of every sales dollar, how much survives the direct cost of what you sold? It is the first profitability number any business should know, and it takes two figures you already have.

40%gross margin in the worked example
2 inputsrevenue and cost of goods sold
66.7%the same example expressed as markup — not the same number

Welcome to the numbers workshop

Hi, I'm Max — I run Vickery Finance, and this page is one room in the workshop. Everything here walks the same path: from shoebox-and-guesswork to a clean close you can defend, one honest number at a time. Work through it with your own figures in hand — that's when a guide turns into a result. And when you're ready to do the close instead of just reading about it, start with the Free Month-End Close Checklist: it's page one of the 18-step close my templates run, printable and yours to keep. Know your numbers.

The formula, and what belongs in it

Gross profit margin = (Revenue − Cost of Goods Sold) ÷ Revenue, expressed as a percentage. Revenue is what customers paid for the goods or services in the period. Cost of goods sold (COGS) is only the direct cost of producing or buying those specific goods or services: materials, inventory purchases, freight-in, and the direct labor that made or delivered the work. Rent, advertising, software, and salaries that exist whether or not a sale happens are operating expenses — they sit below gross profit and do not enter this calculation.

That boundary is what makes the margin useful. A falling gross margin means the work itself is getting less profitable — prices too low, material costs creeping, or jobs taking more direct labor than they were quoted for. Operating discipline cannot fix a gross margin problem, because the loss happens before overhead ever gets a say.

Calculating gross profit margin, step by step

Use one consistent period — a month or a quarter — for both inputs.

  1. Take revenue for the period. Total sales of goods or services, after refunds and discounts, for the same period you will measure costs over. Mixing a good sales month with last month's costs invents a margin that never existed.
  2. Total the direct costs (COGS). Materials and inventory used or sold, freight-in, and direct labor on the work sold. For a service business, direct labor is the hands-on time delivering client work — not management, marketing, or admin time.
  3. Subtract to get gross profit. Revenue − COGS = gross profit, in dollars. This is the amount available to cover every operating expense and, hopefully, leave profit behind.
  4. Divide gross profit by revenue. Gross profit ÷ revenue, times 100, is the gross profit margin percentage. Dividing by revenue — not by cost — is what makes it a margin; dividing by cost gives markup, a different number covered below.
  5. Compare like with like. Judge the result against your own prior months and against the same product or service line, not against a headline figure from another industry. Then re-run the calculation per product line if one line may be dragging the blend down.

Margin is not markup — the expensive confusion

Markup divides gross profit by cost; margin divides it by revenue. The same transaction produces both numbers: sell something for $50,000 that cost $30,000 to deliver and the $20,000 gross profit is a 40% margin but a 66.7% markup. Neither is wrong — but quoting a price using markup math while expecting margin results systematically underprices the work. If you want a 40% margin, price = cost ÷ (1 − 0.40) = cost ÷ 0.60.

Gross margin is also not net margin. Net margin subtracts everything — overhead, interest, taxes — from the same revenue. A business can post a healthy 40% gross margin and a thin net margin if overhead is heavy, which is why the two numbers together locate a problem: gross margin points at pricing and delivery costs, net margin adds overhead discipline to the picture.

Worked example: from $50,000 of sales to a 40% margin

A small maker sells $50,000 of product in a quarter. The direct costs of the goods actually sold: materials $18,000, direct labor $9,000, and freight-in $3,000 — total COGS of $30,000. Gross profit is $50,000 − $30,000 = $20,000, and the margin is $20,000 ÷ $50,000 = 40%.

LineMathAmount
Revenue$50,000
COGS — materials$18,000
COGS — direct labor$9,000
COGS — freight-in$3,000
Total COGS$18,000 + $9,000 + $3,000$30,000
Gross profit$50,000 − $30,000$20,000
Gross profit margin$20,000 ÷ $50,00040%
Same result as markup$20,000 ÷ $30,00066.7%

Reading your margin like an owner

The percentage is only the start — these checks turn it into decisions:

  • Track it monthly and per product line; a blended margin can hide one line quietly selling at a loss.
  • A margin falling while revenue rises usually means discounting or cost creep — find which before adding more sales on top.
  • Re-cost after every supplier price change; margins erode a point at a time, never all at once.
  • Quote new work from the margin you need, using price = cost ÷ (1 − target margin), not by adding a markup and hoping.
  • Keep the COGS boundary consistent month to month — moving a cost in or out of COGS changes the margin without changing the business.

See the margin inside your full profit picture

The free Profit Calculator on this site's homepage runs margin math on your own figures in seconds. The $79 Virtual CFO Toolkit goes further — margin by period, break-even, cash-flow forecasting, and KPI tracking in one Excel and Google Sheets workbook built for owner-level decisions.

Get this exact template

The Virtual CFO Toolkit carries this math into a monthly finance routine — a 12-month cash flow forecast, budget vs. actual, KPI dashboard, break-even & pricing, AR aging & collections, and a CFO monthly checklist. It works in Excel and Google Sheets.

Excel & Google Sheets template — instant download. Price is the published list price. All sales are final.

Frequently asked questions

What is a good gross profit margin?

There is no single good figure — margins differ enormously by industry, and a grocery, a consultancy, and a software business live in different worlds. The useful comparisons are your own trend over time and your margin against what your overhead requires: gross profit must first cover all operating expenses before any net profit exists.

Does gross profit margin include rent and salaries?

Rent, no — it is an operating expense below gross profit. Salaries, only the direct portion: labor that directly produced or delivered what was sold belongs in COGS, while management, sales, and administrative salaries are operating expenses. Keeping that line consistent is what makes the margin comparable month to month.

Why is my margin different from my markup on the same job?

Because they divide by different numbers: margin divides gross profit by the selling price (revenue), markup divides it by cost. Markup is always the larger percentage on a profitable sale — 40% margin and 66.7% markup describe the identical $20,000 of gross profit in the example above.

Before you go

1 — Your first win (10 minutes): the Free Month-End Close Checklist — page one of the 18-step close, printable, free.

2 — Do it with the workbook: find your trade's template — every workbook runs this same clean-close ritual, with example data and a guided first step inside.

3 — Keep the rhythm: one practical numbers email a week — Know Your Numbers, free to subscribe.

The way back: start any visit at the Start Here hub, or email a human — [email protected]. I answer.

Know your numbers. — Max

Gear we use

Some links below are affiliate links. If you buy through them, Vickery Finance may earn a small commission at no extra cost to you.

Victor 1208-2 Printing Calculator — for checking margin math on paper before it goes in the books. Canon MP11DX-2 Printing Calculator — for longer product lists: a two-color printing calculator that keeps the tape readable.

Accounting for the Numberphobic — Dawn Fotopulos — a survival guide to your own numbers for owners who did not sign up to be accountants.

More books and gear live on the Resources page.