Gross Profit Calculator

Subtract cost of goods sold from revenue to get gross profit and gross margin, with each direct cost itemised so you can see which line is actually eating the money.

Updated August 2026 Business

Enter revenue and direct costs

Currency
Gross profit
Gross margin
Cost of goods sold
Markup on cost
Gross profit per unit

A planning tool, not your accounts. These figures follow standard management-accounting definitions, which do not always match how your statutory accounts classify the same costs. Tax treatment differs by country and by entity type. Use this to think with, and have an accountant confirm anything that ends up in a filing, a loan application or a valuation.

How to Use the Gross Profit Calculator

Gross profit is the first honest number in an income statement. It answers one question — does the thing you sell make money before the office, the software and the marketing are paid for — and if the answer is no, nothing further down the statement can rescue it.

  1. Enter net revenue. Sales after returns, refunds and discounts, not the gross figure from the till. Using gross sales overstates the margin by exactly your return rate.
  2. Enter materials and stock. What you paid for the goods sold in this period, including landed cost. Not what you bought — what you sold; the difference is inventory.
  3. Enter direct labour. Only the people whose time goes into the product or the delivered service. A production line worker is direct; an accountant is not, however essential.
  4. Add freight, duty and other direct costs. Inbound freight, customs, packaging, payment processing and subcontracted work all belong here, and all are routinely left out.
  5. Add the unit count for the per-unit view, which is usually where a pricing decision actually gets made.

The donut chart shows where each unit of revenue goes. If the gross profit slice looks thinner than you expected, one of the cost lines is larger than the version of the business in your head.

Gross Profit Formula

One subtraction, then one division. The difficulty is entirely in deciding what counts as a direct cost.

COGS = materials + direct labour + freight + other direct costsGross profit = revenue − COGSGross margin = gross profit ÷ revenue × 100Markup on cost = gross profit ÷ COGS × 100Gross profit per unit = gross profit ÷ units soldThe test for a direct cost is simple: would this cost exist if you sold nothing at all? If yes, it is an overhead and belongs below the gross profit line. If no, it belongs in cost of goods sold.
What each symbol means
SymbolMeaningUnitTypical range
RevenueNet sales after returns and discountscurrencyany
COGSAll costs directly tied to what you soldcurrency0 – revenue
Gross profitRevenue minus COGScurrency
Gross marginGross profit ÷ revenue%15 – 85
UnitsQuantity sold in the periodcount

Rent is the classic borderline case. Factory rent that scales with production is arguably direct; head office rent is not. Consistency matters more than the classification itself — pick a treatment, write it down, and use the same one every period so the trend means something.

Example

$385,000 of revenue on $229,900 of direct cost

  1. Cost of goods sold: materials $142,000 + direct labour $68,500 + freight and duty $19,400 = $229,900.
  2. Gross profit: 385,000 − 229,900 = $155,100.
  3. Gross margin: 155,100 ÷ 385,000 × 100 = 40.29%.
  4. Markup on cost: 155,100 ÷ 229,900 × 100 = 67.46%.
  5. Materials alone are 142,000 ÷ 385,000 = 36.88% of revenue, and 61.77% of all direct cost.
  6. Across 5,500 units: $70.00 of revenue, $41.80 of cost, $28.20 of gross profit each.

Where the leverage is

Materials are the largest line, so that is where a small percentage change matters most. Negotiating 3% off materials saves $4,260, lifting gross profit to $159,360 and the margin to 41.39%. Getting the same $4,260 from freight would require a 22% reduction, which is a far harder conversation for the same result. Always work on the biggest line first.

Direct labour is not always variable

The $68,500 of direct labour is only genuinely direct if it falls when volume falls. Salaried production staff who stay on the payroll through a quiet month behave like a fixed cost even though the accounting treats them as direct. That distinction matters enormously for a break-even calculation, where fixed and variable costs have to be separated honestly rather than conventionally.

What a Gross Margin Actually Tells You

The cost of goods sold, line by line.

Where $385,000 of revenue goes before any overhead
LineAmountShare of revenueShare of COGS
Materials and stock$142,000.0036.88%61.77%
Direct labour$68,500.0017.79%29.80%
Freight and duty$19,400.005.04%8.44%
Total cost of goods sold$229,900.0059.71%100.00%
Gross profit$155,100.0040.29%

A gross margin of 40.29% means roughly forty cents of every dollar is available to pay for everything that is not the product: premises, administration, sales, marketing, finance costs, tax and profit. Whether forty cents is enough depends entirely on how large that list is.

Typical ranges vary enormously by sector. Grocery and commodity distribution often run below 25%. Manufacturing frequently lands between 25% and 45%. Professional services and software commonly exceed 60%, sometimes far exceed it. A 40% margin is healthy for a manufacturer and alarming for a software company, so the comparison that matters is against your own history and your direct competitors.

The trend is more informative than the level. A margin drifting down half a point a quarter is telling you something — rising input costs, a shift in mix, discounting that has become habitual — long before it shows up in the bottom line. Tracking it monthly is one of the cheapest early-warning systems a business has.

Four Classification Decisions That Change the Number

Four classification decisions that change the number, and what to do about them.

Inventory timing. Cost of goods sold means the cost of what you sold, not what you bought. If you bought $180,000 of stock and sold $142,000 of it, the remainder is an asset, not a cost. Businesses that use purchases instead of cost of sales get a margin that swings wildly with buying patterns and means nothing.

Payment processing. Card fees at 2.4% plus a fixed amount are a direct cost of every sale, and on the example they would be roughly $9,240 — enough to move the margin by 2.4 percentage points. Many small businesses file them under administration, which flatters the gross margin and confuses pricing.

Outbound shipping. If you charge for delivery, the charge is revenue and the cost is direct. If you absorb it, the cost is still direct. Either way it belongs above the gross profit line, because it scales with sales.

Discounts and returns. These reduce revenue rather than increasing cost. Netting them off correctly is what separates a margin you can act on from one that flatters. A 6% return rate with no salvage takes about 3.8 percentage points off the margin in this example.

A note on frequency. Gross margin is one of the few figures worth calculating monthly even in a small business, because it moves for reasons you can act on and it moves before anything else does. A supplier price rise, a shift in product mix, a discount that has become the default rather than the exception — all of them show up here first and in the bank balance several months later. Businesses that review the margin monthly catch these changes while they are still small decisions; businesses that see it once a year at the accountant's office find out when it is a structural problem.

Once the gross margin is right, the rest of the statement follows: the operating margin calculator deducts overheads, and the profit margin calculator converts any of these figures between margin and markup.

Frequently Asked Questions

Subtract cost of goods sold from revenue. On the example, $385,000 of revenue less $229,900 of materials, direct labour and freight gives $155,100 of gross profit and a 40.29% margin.

Everything directly tied to what you sold: materials, direct labour, inbound freight and duty, packaging, payment fees and subcontracted work. The test is whether the cost would exist if you sold nothing.

Gross profit stops at direct costs. Net profit continues down through overheads, interest and tax. A business can have a strong gross margin and no net profit at all if the overhead base is too large.

Entirely sector-dependent. Grocery and distribution often run under 25%, manufacturing between 25% and 45%, software and professional services above 60%. Compare against your own history and direct competitors.

Factory or production space that scales with output arguably belongs there; head office rent does not. Consistency matters more than the choice — pick a treatment and keep it so the trend is meaningful.

Yes. They are a direct cost of making each sale. On $385,000 of revenue at 2.4% they would be around $9,240, which moves the gross margin by roughly 2.4 percentage points.

Cost of sales — the cost of what you actually sold. Using purchases makes the margin swing with your buying pattern rather than your trading, which makes month-to-month comparison useless.

Only if it falls when volume falls. Salaried production staff who stay on the payroll through a quiet month behave like a fixed cost, which matters a great deal for break-even analysis.

Work on the largest cost line first. Here, 3% off materials adds $4,260 and lifts the margin over a point; getting the same amount from freight would need a 22% cut. Raising price does the same job faster where the market allows.

Reduce revenue. Net sales is the correct starting figure, and a 6% return rate with no salvage value takes roughly 3.8 percentage points off the gross margin in this example.