Gross Profit Calculator: Gross Profit, Margin and COGS

Gross Profit Calculator: a business owner working out numbers with a calculator and laptop

Quick summary: Gross profit = net sales − cost of goods sold (COGS). Net sales are revenue minus returns and discounts. COGS = beginning inventory + purchases + direct labor + other direct costs − ending inventory. Gross margin = gross profit ÷ net sales. This gross profit calculator does all three: $245,000 of net sales with $139,000 COGS is $106,000 gross profit, a 43.3% margin.

Free, no sign-up, and it runs in your browser. Last reviewed November 23, 2026.

Jump to a section (13)
  1. How do you use the gross profit calculator?
  2. What gross profit formulas does this calculator use?
  3. What counts in COGS?
  4. How do gross profit, net profit, margin, and markup compare?
  5. How should you interpret the result?
  6. What is a good gross profit margin, and which benchmarks apply?
  7. How do you improve gross profit?
  8. What are common mistakes when you calculate gross profit?
  9. Is 30% gross profit good?
  10. How do you work out 70% gross profit?
  11. What would I tell a friend about the gross profit calculator?
  12. Frequently asked questions
  13. Related guides and tools
Your first step today

Do this today

Enter your net sales and COGS for last month to see your real gross profit.

Start small. Your first goal is $500 a month. That is where I started. — Trent

Get the free Startup Kit

Five free files: a startup checklist (PDF), a one-page business plan (Word and PDF), a full plan template (Word), a financials workbook (Excel), and a startup cost worksheet (Excel). Enter your email and the downloads open on the next page. No credit card.

Free Startup Kit signup

How do you use the gross profit calculator?

  1. Gross sales: total revenue for the period, such as a month, quarter or year.
  2. Returns, allowances and discounts: refunds and price reductions. The calculator subtracts them to get net sales.
  3. Choose how to enter COGS. If you already know COGS, enter it directly. Otherwise, use the inventory method: beginning inventory, purchases, direct labor, freight-in and other direct costs, and ending inventory. This matches IRS Schedule C Part III.
  4. Read your gross profit, gross margin, markup on COGS, and COGS as a share of sales.

What gross profit formulas does this calculator use?

  • Net sales = gross sales − returns, allowances and discounts
  • COGS = beginning inventory + purchases + direct labor + freight-in and other direct costs − ending inventory
  • Gross profit = net sales − COGS
  • Gross margin = gross profit ÷ net sales × 100
  • Markup on COGS = gross profit ÷ COGS × 100

Those inventory lines follow the latest published IRS Schedule C (Form 1040) for 2025. Part I starts with gross receipts (line 1), subtracts returns and allowances (line 2), then subtracts cost of goods sold (line 4) to arrive at gross profit on line 5. Part III builds COGS on lines 35 through 42: beginning inventory, purchases (less items withdrawn for personal use), cost of labor (not amounts paid to yourself), materials and supplies, other costs, minus ending inventory. Partnerships and corporations generally use Form 1125-A for the same COGS calculation.

Worked example: a small retail shop’s year

LineAmount
Gross sales$250,000
− Returns and discounts$5,000
Net sales$245,000
Beginning inventory$30,000
+ Purchases$120,000
+ Direct labor$20,000
+ Freight-in$4,000
− Ending inventory$35,000
COGS$139,000
Gross profit$106,000
Gross margin43.27%
Markup on COGS76.26%

Notice the ending inventory: $5,000 more stock was bought than sold. Those goods are an asset until they sell, not a cost of this year’s sales. Forgetting that is one of the most common COGS mistakes. If someone entered $144,000 as COGS by adding beginning inventory, purchases, labor and freight and skipping the ending inventory, gross profit would be understated by $5,000 and the margin would show 42.0% instead of 43.3%.

Worked example: a service business with little inventory

A landscaping company invoices $22,000 in April. It has no beginning or ending inventory of goods for sale. Direct costs are $6,000 of crew wages for time on jobs, $2,000 of fuel and equipment maintenance tied to those jobs, and $1,000 of mulch and fertilizer. COGS, or cost of revenue, is $9,000. Gross profit is $22,000 − $9,000 = $13,000, a 59.1% gross margin and a 144.4% markup on direct costs. Office rent, the owner’s administrative time and marketing are not in this number. They come out later, when you measure operating or net profit on a profit and loss statement.

What counts in COGS?

Include in COGSDon’t include (operating expenses)
Products bought for resale, raw materials and partsRent for an office or store (unless it’s a production facility)
Wages of people who make the product or deliver the serviceOwner’s or office staff’s pay, sales commissions
Freight-in and packaging that’s part of the productMarketing, advertising and shipping to customers (often)
Factory supplies and production equipment depreciationSoftware, insurance, accounting and legal fees

Service businesses often have little or no inventory. Their “cost of revenue” is usually direct labor and subcontractors. The 2025 Instructions for Schedule C and IRS Publication 334 (Tax Guide for Small Business, 2025) say that if you produce, purchase or sell merchandise, you generally must take inventories at the beginning and end of the year, unless you qualify as a small business taxpayer. For tax years beginning in 2026, IRS Revenue Procedure 2025-32, section 4.30, sets the section 448(c) gross receipts test at $32,000,000 of average annual gross receipts for the prior three tax years. Qualifying small business taxpayers can choose not to keep an inventory, but they still need a method that clearly reflects income, such as treating inventory as nonincidental materials and supplies or following their financial accounting treatment. If you do keep an inventory, you generally value it each year to compute COGS in Part III.

Schedule C also has two easy-to-miss rules in Part III: purchases should be reduced by the cost of items you withdraw for personal use, and the cost of labor line should not include amounts you pay yourself. Those withdrawals and that owner’s labor belong somewhere else on the return, not in COGS.

How do gross profit, net profit, margin, and markup compare?

Gross profit shows how profitable your product or service is before overhead. Net profit subtracts every other expense too: rent, payroll, marketing, interest and taxes. A healthy gross margin is necessary but not enough. It must also cover all your operating costs. Use the profit margin calculator to see gross, operating and net margins side by side, and the gross vs. net profit guide for a plain-language comparison.

Markup is a different percentage of the same dollars. In the retail example, $106,000 of gross profit is 43.27% of net sales (margin) and 76.26% of $139,000 of COGS (markup). Pricing a product at “50% markup” is not the same as aiming for a 50% gross margin. The markup calculator and the pricing calculator convert from one to the other so you do not set a price that only looks like your target.

How should you interpret the result?

  • Gross profit in dollars is what is left to pay operating expenses and then earn a net profit. If this number cannot cover rent, salaries, marketing and a fair owner’s wage, the business is not yet viable at the current volume, even if sales look busy.
  • Gross margin is the figure to track every month and to compare with your own history and with businesses like yours. A falling margin is often the first sign that costs rose faster than prices, that discounts got bigger, or that you are selling a weaker mix.
  • A negative gross profit means COGS exceeded net sales. You lost money on the product or service itself, before overhead. That usually requires an immediate price or cost change.
  • COGS as a share of sales is the flip side of gross margin. If it climbs, find out whether suppliers raised prices, waste increased, or ending inventory is wrong.

One period is not a trend. Compare the same month last year if you are seasonal, and look at a full quarter or year when prices and costs bounce around.

What is a good gross profit margin, and which benchmarks apply?

It varies widely by industry, so compare yourself with businesses like yours, not with a single all-business average. A useful dated public-company reference is the industry margin data NYU Stern’s Aswath Damodaran publishes each January. His Margins by Sector (US) file for January 2026, covering 5,994 firms, shows these gross margins:

Industry (Damodaran, January 2026)Gross marginNumber of firms
Retail (Grocery and Food)26.31%15
Restaurant/Dining32.24%64
Retail (General)33.18%23
Business & Consumer Services33.38%155
Total market, without financials34.39%4,822
Retail (Special Lines)35.30%94
Total market37.76%5,994
Apparel56.88%35
Software (System & Application)71.72%309

These are revenue-weighted aggregates for U.S. public companies, not averages for small private firms. Public grocers and software companies have different scale, mix and accounting than a local shop or a one-person studio, so treat the table as a directional check, not a grade. For privately held companies, RMA’s Annual Statement Studies (often free through a public library) and your trade association’s surveys are closer peers. Then track your own margin every month. A grocery store at 24% may be tight against the 26.31% public-company figure; a custom software practice at 55% may be fine even though public software sits much higher, if net profit after the owner’s wage is healthy.

How do you improve gross profit?

  • Raise prices on products where customers value quality or service. Even small increases go straight to gross profit. The pricing calculator sets prices from your target margin, and pricing strategies covers when to use cost-plus, value-based or other methods.
  • Lower unit costs by buying in bulk, negotiating with suppliers, or redesigning products.
  • Cut waste from spoilage, shrinkage, rework and returns.
  • Shift your sales mix toward higher-margin products and add-ons.
  • Count inventory correctly. An ending inventory that is too low overstates COGS and understates gross profit, which can lead you to cut prices or drop a product that is actually fine.

What are common mistakes when you calculate gross profit?

  • Using gross sales instead of net sales. Returns, allowances and discounts belong in the first subtraction. Otherwise the margin looks better than the cash you actually kept from customers.
  • Skipping ending inventory. Goods still on the shelf are not a cost of this period’s sales. They become next period’s beginning inventory.
  • Putting rent, marketing or office salaries in COGS. Those are operating expenses. Mixing them in makes gross margin look worse and hides whether the product itself is profitable.
  • Including the owner’s pay in the labor line on Schedule C. The 2025 form says not to include amounts paid to yourself in Part III cost of labor.
  • Confusing margin with markup. A 50% markup on cost is a 33.3% gross margin, not a 50% margin.
  • Comparing your shop with the wrong industry, or with a public-company average only. Use a peer set, then watch your own trend.
Motivational sign: Profit loves speed.
Fast quotes and fast follow-ups win more jobs.

Is 30% gross profit good?

It depends on your industry. A 30% gross margin is close to normal for restaurants and general retail, which run about 32% to 33% in the public-company benchmarks above, but it’s low for software or apparel, which run much higher. Compare yourself with businesses like yours, not with an overall average.

Also check what has to come out of that 30%. Rent, payroll, marketing, and your own pay all come after gross profit, so a thin gross margin leaves little room for them.

How do you work out 70% gross profit?

To hit a 70% gross margin, divide your cost by 0.30. A product that costs $9 needs a $30 price: gross profit is $21, and $21 ÷ $30 = 70%. To check a margin you already have, divide gross profit by net sales.

Don’t multiply cost by 1.7. That gives a $15.30 price on a $9 cost, which is only about a 41% margin. Our gross margin calculator finds the price for any target margin.

What would I tell a friend about the gross profit calculator?

I’ve started over 20 different businesses, and here is the short version on the gross profit calculator. Gross profit is revenue minus the direct cost of what you sold. If that number is weak, no amount of careful bookkeeping on the overhead will save the month.

— Trent Powell

Read next: the gross margin calculator, the COGS calculator, and gross vs. net profit, or go back to all calculators and tools.

Frequently asked questions

How is gross profit different from contribution margin?

They are close, but contribution margin usually focuses on variable costs of a sale, while gross profit follows the cost of goods or services sold on your statements. For a simple product, they are often nearly the same. For a service business, be clear which costs you included.

How do you calculate gross profit?

Subtract cost of goods sold from net sales. If you sold $245,000 (after returns) and COGS was $139,000, gross profit is $106,000.

What is a good gross profit margin?

It varies widely by industry. In NYU Stern’s January 2026 public-company data, grocery retail gross margin was 26.31%, general retail 33.18%, restaurants 32.24%, and system and application software 71.72%. The total market excluding financials was 34.39%. Compare yourself to your own industry and your own history, not to one universal number. The gross margin calculator compares your margin with 30 industries.

Is gross profit the same as revenue?

No. Revenue is total sales. Gross profit is what’s left after the direct cost of the goods or services you sold.

Why does ending inventory reduce COGS?

Goods still on the shelf haven’t been sold, so their cost isn’t a cost of this period’s sales. They carry over as beginning inventory next period.

Where does gross profit go on a tax return?

Sole proprietors report it on Schedule C. On the 2025 form, Part III calculates cost of goods sold on line 42, and line 5 is gross profit. Partnerships and corporations use Form 1125-A for COGS. For tax years beginning in 2026, the small business taxpayer gross receipts test under Revenue Procedure 2025-32 is $32 million, which can affect whether you must keep inventories.

Does a service business have COGS?

Often yes, even with no inventory. Direct labor, subcontractors, and materials used on a job are a cost of revenue. Office rent, general administration and marketing usually stay in operating expenses.

Why is my markup so much higher than my gross margin?

They use different denominators. Margin divides gross profit by sales; markup divides the same profit by COGS. On $245,000 of net sales and $139,000 of COGS, margin is 43.27% and markup is 76.26%. Both describe the same $106,000.

How do I use a gross profit calculator?

Enter net sales and the cost of goods sold (or inventory figures the calculator asks for). The gross profit calculator returns gross profit and gross margin the same way a Schedule C style P&L would. There’s a short example on the page.

How do you calculate gross profit margin percentage?

Subtract cost of goods sold from net sales to get gross profit, divide gross profit by net sales, and multiply by 100. For example, $50,000 of sales and $30,000 of COGS gives $20,000 of gross profit, a 40% gross margin.


General information, not accounting or tax advice. COGS lines follow IRS Schedule C (2025) and the 2025 Schedule C instructions. The 2026 gross receipts threshold is from IRS Revenue Procedure 2025-32. Industry gross margins are from NYU Stern (Damodaran), January 2026, for U.S. public companies. Last reviewed November 23, 2026.