All metrics
Gross profit and gross margin: formulas, benchmarks and examples
Gross profit is revenue minus cost of revenue, an amount of money; gross margin is gross profit divided by revenue, shown as a percentage.
In plain words: Out of every dollar a customer pays, it is the part left after paying for what it took to deliver the product or service. That leftover has to cover everything else: salaries, marketing, rent, interest and tax.
- Unit
- currency and %
- Direction
- Higher is better
- Review
- Monthly
- Also called
- gross margin, gross profit, gross profit margin, gross profit percentage
Formulas and how to calculate gross profit and gross margin
Gross profit = revenue - cost of revenue.
Gross margin % = gross profit ÷ revenue × 100.
This glossary uses gross profit for the amount and gross margin for the percentage. No standard setter defines either term, and some textbooks, OpenStax’s financial accounting text among them, call the amount “gross margin” and the percentage “gross profit margin ratio”, so check the unit whenever you read either.
Revenue here means net revenue: sales after returns, discounts and other price reductions, without the output VAT or sales tax collected for the tax authority, which is a liability, not revenue. Net revenue is not cash received; net cash flow and days sales outstanding show what actually arrived.
Cost of revenue is the cost of delivering what was sold, and its name changes with the business. Trading and manufacturing companies call it cost of goods sold (COGS). Service businesses may write cost of services, the caption US Regulation S-X uses next to “cost of tangible goods sold”. IFRS accounts usually say cost of sales, as does Finrely’s P&L (the Cost of Sales line). Many software and platform companies use cost of revenue as the umbrella label, and this glossary uses it on every page.
The usual mistake is in the denominator. Divide by revenue, not by cost of revenue, and use net revenue: after discounts and without the sales tax on the invoice.
Gross margin vs gross profit
Gross profit is money: 40,000 if you sold 100,000 of goods that cost 60,000 to deliver. Gross margin is the same fact as a percentage: 40%. Two companies can have the same gross margin and very different gross profit, so quote both when the size of the business matters.
Margin is not markup
Markup divides gross profit by cost; margin divides it by revenue. An item that costs 60 and sells for 100 has a markup of 66.7% and a margin of 40%. A 50% markup is a 33.3% margin. Mixing the two up leads to prices that are too low.
What goes into cost of revenue (and why it is not always obvious)
No standard draws this line for you. US Regulation S-X Rule 5-03 separates costs applicable to sales from other operating costs and SG&A, requires no gross profit subtotal and lets merchandisers put occupancy and buying costs in cost of goods sold. IFRS shows a gross profit line only when expenses are presented by function, an option IFRS 18 keeps from 2027. Three kinds of cost cause most of the arguments.
Shared costs, payroll first. Support, implementation and hosting staff usually go to cost of revenue, salespeople to selling, finance and HR to admin. Salesforce’s 10-K for the year to January 2026 puts in subscription and support cost of revenues the employee costs of delivering and supporting the service, data center capacity, certain third-party fees and allocated overhead. It does not give its allocation key, and we found no standard one.
Platforms and incentives. Under ASC 606 and the matching paragraphs of IFRS 15, consideration payable to a customer (incentives, credits, vouchers) generally reduces revenue unless it pays for a distinct good or service; PwC’s guide notes that an excess over the transaction price may be presented as an expense in some fact patterns. Uber’s 10-K for 2025 states its own policy. Where it acts as an agent, incentives to its customers (drivers and merchants) reduce revenue, and when they exceed the revenue earned on a transaction, the shortfall is recorded as a reduction of revenue, so that transaction’s revenue can be negative. Targeted promotions to end users who are not its customers go to sales and marketing. Where Uber reports revenue gross, driver payments sit in cost of revenue. One discount can land in three places. The FASB has proposed, but not finalized, a clarification of when payments made on behalf of a customer, or to a customer’s customer, count as consideration payable to a customer (proposed ASU of October 2026), so platform presentation may still shift.
Partial capitalization. ASC 350-40 capitalizes internal-use software costs incurred in the application development stage (ASU 2025-06 replaces the stages for fiscal years beginning after 15 December 2027); IAS 38 capitalizes development costs once its criteria are met. The amount returns to the P&L later as amortization, either inside cost of revenue (where Salesforce, for example, reports the amortization of acquired technology) or on a separate D&A line. The mechanics, without a number: capitalizing a cost that would otherwise sit in cost of revenue raises gross margin and EBITDA today and normally moves the cash outflow from operating to investing cash flow (cloud implementation costs stay in operating).
A practical method. Decide first what certainly belongs to cost of revenue, selling, admin and R&D. Run each disputed cost through one test: does it scale with delivering revenue, with winning customers, or with running the company? Record the rule and apply it every month. In Finrely the P&L has Management, As booked and Reconciliation views, so you can compare the management grouping with the lines as your chart of accounts booked them.
How Finrely calculates gross profit and gross margin
Finrely shows both on the P&L: the GROSS PROFIT row, and under it a row labeled Gross Margin. The formula is the textbook one: gross profit ÷ net revenue, where gross profit is Net Revenue (the P&L’s top line) minus Cost of Sales.
Where Cost of Sales ends follows how the accounts in your books are mapped to P&L lines, so when the margin jumps for no business reason, check the mapping first. The guides for QuickBooks Online, Xero, Zoho Books and Odoo show how the P&L is built from each system.
Net Revenue, Gross Profit and Gross Margin each have an info icon with Finrely’s definition inside the report. For your company’s own figures, the “Ask about this P&L” button opens Finrely’s AI chat, where you can ask how gross margin was calculated from your numbers and what moved it. The P&L can also show a KPI target for the margin with a status next to it; the demo company has one, described in the example below.
Open the Summit Commerce demo and find this row: Gross Margin sits directly under GROSS PROFIT in the P&L.
Example: gross profit and gross margin for Summit Commerce Inc
Summit Commerce Inc is Finrely’s public demo company: a SaaS and marketplace business reporting in US dollars, shown here in thousands for October 2026 (closed month). Snapshot 2026-11-17, closed month Oct ’26.
| P&L line (Oct ’26, USD thousands) | Amount |
|---|---|
| Net Revenue | 345.1 |
| Cost of Sales | (112.2) |
| Gross Profit | 232.9 |
| Gross Margin | 67.5% |
Gross profit is $232.9K, and gross margin is 232.9 ÷ 345.1 = 67.5%. A year earlier, in October 2025, the margin was 69.6%, so it is 2.1 percentage points lower.
The more instructive month is August 2026. Cost of Sales jumped to $134.7K, against $97.3K in July and $113.9K in September, and gross margin fell to 59.2%. It recovered to 65.9% in September and 67.5% in October. A one-month dip like that is the signal to apply the checklist further down this page: first check whether a cost was reclassified into cost of revenue, then look at price, mix and cost per unit. The P&L also shows a KPI target, “Gross margin target ≥ 68.0%”, with the status “Watch”: October’s 67.5% sits just below it.
What is a good gross margin?
A good gross margin pays for your operating costs at the volume you actually reach, with something left over, so there is no single number. Software has almost no cost of delivering one more customer but spends heavily on product and sales, so it needs a high gross margin. A distributor spends little on overhead and lives on a thin one. The same 30% can be excellent for one and fatal for the other.
Reference points, with their limits:
- Damodaran’s January 2026 data for US companies shows software (system and application) at 71.7% and internet software at 62.6%. His figures are aggregates: total profit over total revenue for each industry, so large companies dominate. They say little about a small business.
- For a software company, the gap between subscription margin and blended margin is usually services and implementation, which carry far more delivery cost per dollar than the subscription itself. Read the two separately if you sell both.
Outside software, Damodaran’s aggregates show retail between 26.3% (grocery and food) and 35.3% (special lines), apparel at 56.9%, and manufacturing from 10.4% (auto and truck) to 37.5% (machinery). We found no free, authoritative source for small-business gross margins by industry.
Gross margin by business model
| Business model | Importance | Typical range | Why |
|---|---|---|---|
| SaaS and software | Core | Damodaran 62.6% (internet software) to 71.7% (system and application software), large-company aggregates. No reliable SMB benchmark | Near-zero cost per extra customer; the gap between subscription and blended margin is services and implementation |
| Professional services | Useful, but utilization and project margin usually tell more | No reliable benchmark. Damodaran proxies: business and consumer services 33.4%, computer services 24.3%, advertising 36.2% | Delivery cost is mostly salaries, so the margin is a pricing and utilization story. Firms differ on whether all staff cost or only billable staff goes into cost of revenue |
| E-commerce and retail | Core | Damodaran retail 26.3% to 35.3%, apparel 56.9% (no online retail row) | Product cost, shipping, returns and payment fees decide it; where fulfillment cost is booked shifts the margin |
| Manufacturing | Core | Damodaran 10.4% (auto and truck) to 37.5% (machinery) | Materials, direct labor and factory overhead sit in cost of goods sold; commodity sectors run thin |
| Marketplaces | Useful; take rate matters more | No reliable benchmark | Gross or net revenue (principal or agent) and the incentive policy change the percentage without changing the profit |
| Pre-revenue startups | Rarely | No reliable benchmark | With no revenue the ratio is undefined; watch unit gross margin on the first paying customers |
| Groups and holdings | Useful by segment, weak consolidated | No reliable benchmark | A consolidated figure mixes businesses with different cost structures |
Edge cases
- Reclassification. Moving support, fulfillment or hosting between cost of revenue and operating expenses changes gross margin and leaves operating profit untouched. Compare periods only if the mapping stayed the same.
- Principal or agent. Under IFRS 15 a principal reports the gross amount as revenue and an agent reports only its fee. A marketplace that changes its conclusion changes its gross margin percentage with no change in money earned.
- Depreciation inside or outside cost of revenue. Uber, for example, labels its line “cost of revenue, exclusive of depreciation and amortization”. A gross margin before D&A and one after D&A are different measures, so state which one you use.
- Zero or tiny revenue. A new product or a quiet month makes the ratio explode or turn meaningless. Use a trailing three-month figure or year to date.
- Negative gross margin. Valid, not an error: cost of revenue is higher than revenue, for example with heavy hosting or discounted delivery. Salesforce’s filing warns that its professional services costs may exceed the related revenue in future periods. Check timing first.
- One-offs in cost of revenue. Inventory write-downs and supplier credits distort a single month.
- Multi-currency. Selling in one currency and buying in another moves the margin with the exchange rate.
A real-world example: Hershey’s gross margin, 2020-2025
Hershey’s gross margin stayed between 43.2% and 47.3% from 2020 to 2024, then fell to 33.5% in 2025, a year in which net sales grew 4.4% and cost of sales grew 31.7%. In its 2025 10-K the company attributes the decline to higher commodity costs ($736.6 million), higher supply chain costs including tariffs ($287.2 million), unfavorable mark-to-market on commodity derivatives ($491.0 million) and lower volume, which more than offset price realization and productivity savings. The 2022 dip to 43.2% is explained in the 2022 10-K by supply chain inflation, including logistics and labor, derivative mark-to-market and unfavorable mix, partly offset by price realization. The 2024 figure of 47.3% included a favorable year-on-year mark-to-market effect of $563.0 million. For this page the point is the one made above under “What goes into cost of revenue”: Hershey reports gains and losses on commodity derivatives inside cost of sales, so they move gross margin in both directions, separately from the prices the company actually pays for its inputs in that year.
| Fiscal year (ends Dec 31), USD millions | 2020 | 2021 | 2022 | 2023 | 2024 | 2025 |
|---|---|---|---|---|---|---|
| Net sales | 8,149.7 | 8,971.3 | 10,419.3 | 11,165.0 | 11,202.3 | 11,692.6 |
| Cost of sales | 4,448.5 | 4,922.7 | 5,920.5 | 6,167.2 | 5,901.4 | 7,769.9 |
| Gross profit | 3,701.3 | 4,048.6 | 4,498.8 | 4,997.8 | 5,300.9 | 3,922.7 |
| Gross margin | 45.4% | 45.1% | 43.2% | 44.8% | 47.3% | 33.5% |
Gross margin = gross profit ÷ net sales, both as reported in the consolidated statements of income (10-Ks for fiscal 2022 and 2025); our calculation. The cost drivers are quoted individually from the company’s MD&A.
Limitations and common misconceptions
Gross margin says nothing about overhead. A company can have a healthy gross margin and large losses: in Damodaran’s data, internet software has a 62.6% gross margin and a net margin of -0.9%.
It is not comparable across companies unless their cost of revenue definitions match. Retail occupancy costs, support staff in a software company, platform incentives and the D&A treatment all change the number.
Pushing the percentage up can lower gross profit. A price rise that loses a third of your volume raises the margin and shrinks the money, so look at gross profit in currency next to the percentage.
Gross margin is not profit, because it comes before overhead, interest and tax. And it is not markup.
How gross margin connects to other metrics
- Operating margin. Gross margin minus the operating expense ratio equals operating margin. It shows whether a change in profit came from the cost of delivery or from the cost of running the company.
- Contribution margin and break-even. Contribution margin deducts all variable costs, not only cost of revenue, and break-even revenue is fixed costs divided by the contribution margin ratio. Gross margin is a rough stand-in only when cost of revenue is close to all of the variable cost.
- Unit economics. Customer lifetime value and payback periods are usually computed on gross-margin-adjusted revenue.
- Price and mix. A price change flows almost one for one into gross margin, which makes it the first lever to test.
- DSO, cash conversion cycle and net cash flow. Gross profit is not cash. A profitable month can still drain cash through receivables and working capital, which days sales outstanding, the cash conversion cycle and net cash flow show.
If gross margin gets worse (and how to increase it)
Check in this order:
- Classification. Did any cost line move into or out of cost of revenue this period: support, shipping, hosting, depreciation? If yes, restate the old months before comparing.
- Price, mix and cost per unit. Compare revenue per unit and cost per unit for your top products or customers to see which of the three moved.
- Suppliers and freight. Review price lists, exchange rates on purchases and discount terms.
- For services and software: utilization of billable staff, implementation hours per customer, hosting cost per customer, and custom work sold at a discount.
- Discounts, refunds, returns and chargebacks, and any shift of sales toward low-margin lines.
The same list works in reverse when you want to raise the margin on purpose.
Finrely’s view
Frequently asked questions
Gross margin vs gross profit: what is the difference?
Gross profit is an amount of money: revenue minus cost of revenue. Gross margin is that amount as a percentage of revenue. Some textbooks use 'gross margin' for the amount, so this glossary states its convention, and you should state the unit whenever you quote either one.
What does gross margin mean?
Gross margin is the share of revenue left after the cost of delivering your product or service. If a business sells for 100 and the cost of revenue is 60, gross profit is 40 and gross margin is 40%. What remains pays for sales, administration, product development, interest and tax.
What is a good gross margin?
It depends on the business model. In Damodaran's January 2026 aggregates for US companies, which large companies dominate, software sits at about 63% to 72%, retail around 26% to 35% (apparel is higher), and manufacturing anywhere from about 10% to 38% by sector. The better test is your own trend and whether the margin covers your operating costs at the volume you reach.
Is cost of revenue the same as cost of goods sold?
For a business that sells goods, yes: cost of goods sold is its cost of revenue. Service businesses speak of cost of services, IFRS accounts and Finrely's P&L use cost of sales, and many software and platform companies write cost of revenue. All of them are the number you subtract from revenue to get gross profit.
How do you increase gross margin?
Raise prices or shift the mix toward higher-margin products, lower the unit cost of delivery (suppliers, hosting, delivery labor), cut discounts and returns, and make sure no cost has drifted between cost of revenue and operating expenses. Check classification first, because a reclassification changes the margin without changing profit.
Sources
- The Hershey Company, Form 10-K for fiscal 2022: Consolidated Statements of Income (2020-2022) and Item 7, Cost of Sales and Gross Margin (2022 vs 2021), U.S. Securities and Exchange Commission (EDGAR). Accessed Nov 17, 2026.
- 17 CFR 210.5-03 - Statements of comprehensive income, Cornell Legal Information Institute (official CFR text). Accessed Nov 19, 2026.
- The Hershey Company, Form 10-K for fiscal 2025: Consolidated Statements of Income and Item 7, Cost of Sales and Gross Margin, U.S. Securities and Exchange Commission (EDGAR). Accessed Nov 17, 2026.
- Uber Technologies, Inc., Form 10-K for the year ended December 31, 2025: Note 1, Revenue Recognition and Costs and Expenses, U.S. Securities and Exchange Commission (EDGAR). Accessed Nov 19, 2026.
- Revenue from contracts with customers, 4.6 Consideration payable to a customer, PwC Viewpoint. Accessed Nov 19, 2026.
- Proposed ASU, Revenue from Contracts with Customers (Topic 606): Consideration Payable to a Customer (issued October 22, 2026, comments due November 23, 2026), Financial Accounting Standards Board. Accessed Nov 19, 2026.
- Principles of Financial Accounting, 6.6: Multi-step and simple income statements for merchandising companies, OpenStax, Rice University. Accessed Nov 19, 2026.
- Salesforce, Inc., Form 10-K for fiscal 2026 (year ended January 31, 2026): cost of revenues, including amortization of acquired technology, U.S. Securities and Exchange Commission (EDGAR). Accessed Nov 17, 2026.
- Margins by sector (US), data as of January 2026, Aswath Damodaran, NYU Stern. Accessed Nov 17, 2026.
Last reviewed Nov 19, 2026
Related terms
Related articles
How to Know Which Numbers in Your Financial Dashboard You Can Trust
QuickBooks Online Reporting by Plan, and Where Management Reporting Needs More
Why Your Management P&L Doesn't Match Your Books, and How to Check Every Change
See it on your own numbers
Connect a source and watch a board-ready pack assemble itself - every figure traceable.