Gross and net profit calculator

Free · No signup · Guide approved 18 November 2026 by Nirav Italiya, founder · How we check guides

How do I calculate gross profit and net profit?

Gross profit = revenue − cost of goods sold. Net profit = gross profit − all other expenses (ads, fees, shipping, overheads) − tax. On 50,000 of revenue with 22,000 cost of goods, gross profit is 28,000 (a 56% gross margin); after 18,000 of expenses and 20% tax, net profit is 8,000, a 16% net margin.

Gross profit

$28,000

Gross margin 56.0%

Net profit

Healthy

$8,000

Net margin 16.0%

From revenue to net profit

  • Revenue$50,000
  • Cost of goods sold−$22,000
  • Advertising−$6,000
  • Fees−$5,000
  • Shipping & packaging−$4,000
  • Other expenses−$3,000
  • Tax 20%−$2,000
  • Net profit$8,000

Every 100 of revenue

  • Goods 44.0
  • Ads 12.0
  • Fees 10.0
  • Shipping 8.0
  • Other 6.0
  • Tax 4.0
  • Net profit 16.0

Gross profit = revenue − cost of goods sold. Net profit takes off every other expense and tax. Tax here is a simple percentage of operating profit; your accountant’s figure will differ.

Fewer returns, better margin

Show buyers the real fit and colour

Returns and RTO eat profit. On-model photos that match what buyers receive help them choose right the first time.

  • First 2K photo free, no card
  • Ready in about 3 minutes
  • Full commercial rights
Flat-lay photo of a western dressThe same western dress on an AI model, made with DrapifyApp

How to use it

  1. Enter revenue and cost of goods sold.
  2. Add advertising, fees, shipping and other expenses.
  3. Set your tax rate, or 0 for profit before tax.
  4. Read gross and net profit and margins.

Who this is for

This calculator is for online sellers who want a monthly answer to “did we make money?”: a marketplace seller with ad spend and fees, a small brand with a website and a warehouse helper, or a reseller checking whether a busy festive month was actually profitable once every cost is counted.

It takes one period’s revenue and costs and shows gross profit, net profit and both margins, a waterfall chart from revenue down to net profit, and a bar showing where every 100 of revenue went.

How each line is treated

  • Revenue: what customers paid for orders that stayed sold in the period. Take refunds and cancelled orders out first.
  • Cost of goods sold: what the units you sold cost you, including inbound freight. Not the stock you bought this month and have not sold.
  • Advertising, marketplace and payment fees, shipping and packaging, other expenses: each is subtracted from gross profit to give operating profit.
  • Tax: a simple percentage of operating profit, applied only when operating profit is positive. A loss is shown with no tax.
  • Net margin is net profit ÷ revenue. The tool labels it healthy at 10% or more, thin below that, and a loss below zero. That is a rule of thumb, not a benchmark for your category.

Worked example: same sales, different ad spend

A hypothetical clothing seller has 80,000 of monthly revenue, 30,000 cost of goods, 9,600 of fees, 6,400 of shipping and packaging and 4,000 of other costs, with a 25% tax rate. Gross profit does not change with ad spend, but net profit does.

Hypothetical month, any currency
LineAds 12,000Ads 17,000
Revenue80,00080,000
Gross profit (62.5% margin)50,00050,000
Operating profit18,00013,000
Tax at 25%4,5003,250
Net profit13,5009,750
Net margin16.9%12.2%

Is extra ad spend worth it?

The extra 5,000 of ads only paid for itself if it brought in enough extra profit before tax. Gross margin alone overstates what a new sale leaves: at 62.5% it would suggest 5,000 ÷ 0.625 = 8,000 of extra revenue, but fees and shipping also grow with each extra sale. Here they are 12% and 8% of revenue, so each extra 100 of revenue leaves 100 − 37.5 − 12 − 8 = 42.5. The extra revenue needed just to stand still is 5,000 ÷ 0.425, about 11,765.

Treat that as a minimum, not a goal, since it still ignores the extra tax on extra profit and any returns on the new sales. If the new ads cannot plausibly bring that much more revenue, the extra spend is eating profit.

Reading the waterfall and the bar

The waterfall shows each cost as a step down from revenue. The tallest step after cost of goods is where to look first; for many marketplace sellers that is fees or ads, not the product. The “every 100 of revenue” bar turns the same numbers into shares, which makes months of different sizes easy to compare: if ads went from 15 to 21 out of every 100 while revenue grew, growth was bought, not earned.

Run the calculator once a month with the same definitions and keep the results side by side. A trend in net margin tells you more than any single month.

Gross margin, net margin and the tax box

The tool shows two margins, and they answer different questions. Gross margin (gross profit ÷ revenue) tells you whether the product earns enough over its own cost. Net margin (net profit ÷ revenue) tells you whether the whole month earns enough once ads, fees, shipping, other costs and tax are taken off. In the example above, gross margin is 62.5% for both months, while net margin falls from 16.9% to 12.2%, because the gap between them is where the extra ads went.

Enter 0 in the tax box to see profit before tax, which is the better figure for comparing months or channels. A flat percentage is only an estimate, so use your accountant’s figure when you need the real tax cost.

Gross margin is not take-home

A healthy gross margin can still end in a loss once ads, fees and shipping are counted. Net margin is what the business actually keeps.

Use a full month

Enter a whole month or quarter so one-off costs and seasonal sales even out.

Common mistakes

  • Putting the month’s stock purchases into cost of goods sold instead of the cost of what was actually sold.
  • Counting gross sales before refunds and returns as revenue.
  • Leaving out your own salary or a family member’s wages from other expenses, which flatters net profit.
  • Comparing a festive month with an ordinary one without noting the difference.
  • Treating the tax line as your actual tax bill.

What this tool can’t do

  • Tax is a flat percentage of operating profit. Real income tax depends on your country, business type, allowances and losses carried forward.
  • It shows one period. It does not split profit by product or channel.
  • It does not handle sales tax, VAT or GST collected from customers; enter revenue without them.
  • Results are only as accurate as the costs you enter. Missing small recurring costs adds up.

How this guide was made: drafted with AI assistance from the tool’s own calculations and behaviour, then checked against our editorial policy and approved by the founder before publishing.

Questions

What is a good net profit margin for an online store?
It varies widely; many small e-commerce businesses run at roughly 5% to 20%. Compare with your own past months.
What goes in cost of goods sold?
What the products you sold cost to make or buy, including inbound freight. Not ads or overheads.
What is the gross profit formula?
Gross profit = revenue − cost of goods sold. Gross margin = gross profit ÷ revenue × 100.
What is the difference between gross profit and net profit?
Gross profit only subtracts the cost of the goods sold. Net profit also subtracts operating costs, ads, fees, interest and tax.
What is a good gross margin for clothing?
Clothing retailers often run gross margins of 50% or more, because returns, discounts and marketing come out of what is left.

Add this calculator to your website

Run a blog, seller community or agency site? Paste this code where you want the Gross and net profit calculator to appear. It is free, has no ads, and works on WordPress, Shopify, Wix, Blogger and plain HTML.

Preview the embedAdd ?theme=dark to the address for a dark version.

Related free tools

More free tools: Price & profit

See all Price & profit tools