iLuvAccounting
iLuvAccounting
Free Tools Learn Glossary Templates Academy Membership
Back to iLuvAccounting

Free Gross Margin Calculator (Excel)

Revenue going up doesn't mean much if your margin is shrinking underneath it. This free calculator shows your gross profit and gross margin percentage — by product or overall — so you can see immediately whether your pricing actually makes you money once direct costs are covered.

Download Free — XLSX See the Full Library

No email required · Works in Excel or Google Sheets · Includes a built-in AI prompt

Who this is for

  • Product-based business owners setting or checking prices
  • Business owners who feel busy but aren't sure if they're actually profitable
  • Freelancers and service providers comparing project profitability
  • Students learning the difference between revenue and margin

What's included

  • Per-product or per-service margin calculator
  • Automatic Gross Profit and Gross Margin % calculation
  • Side-by-side comparison rows for multiple products
  • Built-in AI prompt to flag which products or services are quietly underperforming

Why use a template instead of starting from scratch?

It's easy to eyeball a price and assume it's profitable because the revenue number looks good. Margin only becomes obvious once you actually subtract direct costs — and doing that math by hand for every product, every time you adjust a price, invites errors. This template does it automatically and lets you compare products side by side.

How to Use This Template

1

Download and open in Excel or Google Sheets

Works identically in either — no macros or add-ins needed.

2

List each product or service you want to check

Add one row per item if you're comparing multiple products.

3

Enter the price and the direct cost for each one

Direct cost means what it actually costs you to produce or deliver that specific item — materials, direct labor, packaging, payment processing fees.

4

Read the automatic Gross Profit and Gross Margin %

The calculator does the subtraction and percentage math for you instantly.

5

Run the built-in AI prompt to spot what needs attention

Attach the saved file to ChatGPT or Claude and ask which products have the weakest margin and why.

Built-in AI prompt

Once you've filled this template in, it includes a ready-to-use prompt at the bottom of the sheet. Attach your saved file to ChatGPT, Claude, or any AI chat tool and paste it in — you'll get plain-English feedback on which products or services have the weakest margin, how that compares to healthy benchmarks for your type of business, and what to consider changing, no accounting background required.

Common Mistakes to Avoid

×

Using total business costs instead of direct product costs

Gross margin should only subtract costs directly tied to producing that specific item — rent and admin salaries belong on the P&L as operating expenses, not here.

×

Ignoring small costs that add up

Payment processing fees, packaging, and shipping supplies are easy to forget but they're real direct costs that shrink your actual margin.

×

Comparing your margin to the wrong benchmark

A healthy gross margin looks completely different for a software product versus a restaurant versus a retail reseller — compare against your own industry, not a generic number.

×

Setting a price once and never rechecking it

Material and supplier costs change. A margin that was healthy a year ago can quietly erode if the price never gets revisited.

Frequently Asked Questions

What's the difference between gross margin and net margin?
Gross margin subtracts only the direct cost of producing what you sold (Cost of Goods Sold) from revenue. Net margin subtracts everything — direct costs plus all operating expenses, taxes, and interest. Gross margin tells you if the core product is priced right; net margin tells you if the whole business is profitable.
What's a good gross margin for a small business?
It varies enormously by industry — retail resellers often run 20-40%, software and digital products can run 70-90%+, restaurants typically run 60-70% on food alone before labor. Compare against your specific industry, not a universal number.
Should I calculate gross margin per product or for the whole business?
Both are useful. Per-product margin shows you which items are worth pushing or repricing. Overall gross margin (from your P&L) shows the combined picture across everything you sell.
Is this template really free?
Yes, completely free, no email required. iLuvAccounting also has a paid Tools Club with 70+ templates and calculators if you want the full library.
How often should I recheck my gross margin?
Whenever supplier costs, materials, or shipping rates change materially, and at minimum a full review every quarter — margins can erode slowly enough that you don't notice until it's a real problem.
Does gross margin account for how much I sold, or just the price?
It's a per-unit or per-dollar-of-revenue percentage, independent of volume — a 40% gross margin means the same thing whether you sold 10 units or 10,000. Total gross profit (the dollar amount) is what scales with volume.
Can I use this to compare pricing scenarios before changing a price?
Yes — duplicate a row, change the price or cost inputs, and compare the resulting margin side by side with your current numbers before committing to the change.

Related Templates

Related Resources

Want the Full Template Library?

70+ editable templates, each with a built-in AI prompt. $7/month, cancel anytime.

Join the Tools Club