How to.calculate gross profit
Enter either total sales and total cost of goods sold, or switch to unit economics mode to calculate gross profit, gross margin, and markup instantly.
Formula used: Gross Profit = Revenue – Cost of Goods Sold. Gross Margin = Gross Profit / Revenue x 100.
Your results
Use the calculator to see your gross profit, gross margin percentage, markup, and revenue breakdown.
Expert guide: how to.calculate gross profit accurately
Gross profit is one of the most important financial measures in business because it tells you how much money is left after paying the direct costs required to produce or buy the goods you sell. If you run a product business, manage a store, evaluate pricing, or review a company financial statement, understanding gross profit is essential. It sits near the top of the income statement and gives a fast read on whether your core offering is commercially viable before operating expenses, taxes, and financing costs are considered.
In simple terms, gross profit answers a practical question: after the business brings in sales revenue and pays for the inventory, materials, direct labor, or direct production costs associated with those sales, what amount remains to cover overhead and create profit? This is why business owners, investors, analysts, and lenders watch gross profit closely. A healthy gross profit does not automatically mean a business is successful, but a weak gross profit usually signals pricing problems, supplier cost pressure, operational inefficiency, or a poor sales mix.
What gross profit means
Gross profit measures direct profitability. It excludes many costs that still matter to the business, such as rent, marketing, software subscriptions, insurance, administrative payroll, and interest expense. Those costs show up later when you analyze operating profit and net profit. Because gross profit focuses only on direct production or purchase costs, it is especially helpful for evaluating the economics of products, categories, customers, and sales channels.
For example, if a retailer buys a product for $40 and sells it for $65, the gross profit on that sale is $25. If the company sells 10,000 units, gross profit is $250,000 before considering salaries, rent, and other overhead. If supplier costs increase to $47 while the retail price stays the same, gross profit per unit falls to $18. That single change can dramatically reduce total profitability across the business.
The basic formula
The standard formula is straightforward:
- Gross Profit = Revenue – Cost of Goods Sold
- Gross Margin = Gross Profit / Revenue x 100
- Markup = Gross Profit / Cost of Goods Sold x 100
These three metrics are related, but they are not the same. Gross profit is a currency amount. Gross margin is the percentage of revenue left after direct costs. Markup measures how much above cost you are selling. Many pricing mistakes happen because teams confuse margin and markup. A 25% margin is not the same as a 25% markup.
What counts as cost of goods sold
To calculate gross profit correctly, you must define cost of goods sold, often shortened to COGS, the right way. For manufacturers, COGS usually includes raw materials, direct labor, and factory costs directly tied to production. For wholesalers and retailers, COGS usually includes inventory purchase cost plus freight-in and other direct acquisition costs. For some service businesses, gross profit may be measured using direct cost of service delivery, although definitions vary by industry.
- Inventory purchase cost
- Raw materials and components
- Direct labor tied to making the product
- Freight-in or shipping paid to acquire inventory
- Packaging directly attributable to units sold
- Certain manufacturing overhead directly linked to production
Items that usually do not belong in COGS include office rent, executive salaries, general advertising, legal fees, accounting fees, and loan interest. Misclassifying these expenses can distort gross profit and make your products seem more or less profitable than they really are.
Step by step example
Suppose your business reports $125,000 in revenue for a month and $78,000 in cost of goods sold. The gross profit calculation is:
$125,000 – $78,000 = $47,000 gross profit
Then calculate the gross margin:
$47,000 / $125,000 = 0.376 = 37.6%
Now calculate markup:
$47,000 / $78,000 = 0.6026 = 60.26%
This tells you the company keeps 37.6 cents of each sales dollar after covering direct costs. It also tells you the company sells at roughly 60.26% above direct cost. If overhead is controlled, this may be a healthy business. If overhead is very high, the company may still struggle despite a decent gross margin.
Industry comparisons matter
Gross profit should almost never be evaluated in isolation. A 25% gross margin might be strong in grocery retail, average in apparel, and weak in software. Margin expectations differ by inventory risk, competition, production complexity, and pricing power. That is why benchmarking is useful.
| Sector | Estimated Gross Margin | Interpretation | Source Context |
|---|---|---|---|
| Software (System and Application) | About 71% | Very high gross margin due to low marginal delivery cost | NYU Stern industry datasets, January 2024 |
| Semiconductor | About 50% | Healthy but capital intensive; product cycle risk matters | NYU Stern industry datasets, January 2024 |
| Retail (General) | About 35% | Lower margin business driven by scale and inventory management | NYU Stern industry datasets, January 2024 |
| Grocery and Food Retail | Often in the low to mid 20% range | Thin margins require strong turnover and cost discipline | Public market sector comparisons and industry filings |
Note: exact figures change over time. Benchmarks should be used directionally and compared with peers using the same accounting conventions.
Why gross profit can rise while cash flow gets worse
Many people assume that stronger gross profit automatically means better cash performance. That is not always true. If inventory builds too quickly, if customer collections slow, or if discounts are used to move aging stock, cash can tighten even when reported gross profit looks stable. Gross profit is an accounting measure, not a cash measure. You should review it alongside inventory turnover, accounts receivable aging, and operating cash flow.
| Metric | Example Business A | Example Business B | What It Suggests |
|---|---|---|---|
| Revenue | $2,000,000 | $2,000,000 | Same top-line sales |
| COGS | $1,250,000 | $1,500,000 | Business A buys or produces more efficiently |
| Gross Profit | $750,000 | $500,000 | Business A has $250,000 more room to cover overhead |
| Gross Margin | 37.5% | 25.0% | Business A has stronger core economics |
| Inventory to Sales Ratio | 1.10 | 1.45 | Business B may be tying up more capital in inventory |
How to improve gross profit
If your gross profit is lower than expected, there are several levers you can pull. The right solution depends on whether the problem is price, product mix, direct cost, shrinkage, returns, or operational efficiency.
- Raise prices carefully: Small price increases can have a large effect when demand is stable.
- Negotiate supplier terms: Better purchase costs directly improve gross profit.
- Improve product mix: Selling more high-margin items lifts blended margin.
- Reduce waste and returns: Damage, spoilage, and defects quietly erode gross profit.
- Review discounting: Promotions can grow revenue while shrinking actual profitability.
- Analyze channel economics: Marketplace fees, shipping, and fulfillment costs can vary widely.
Common mistakes when calculating gross profit
- Confusing gross profit and net profit. Net profit includes all operating, financing, and tax effects.
- Using the wrong COGS number. Direct costs must be separated from overhead.
- Mixing margin with markup. These percentages answer different questions.
- Ignoring returns and allowances. Revenue should reflect the true amount earned.
- Skipping inventory adjustments. Beginning inventory, purchases, and ending inventory affect COGS.
- Comparing unmatched periods. Seasonality can distort interpretation.
How inventory affects the result
For product businesses, inventory accounting plays a major role in gross profit. If you calculate COGS manually, the typical formula is:
Beginning Inventory + Purchases – Ending Inventory = Cost of Goods Sold
This is important because direct purchase activity in a period is not always the same as the cost of the inventory actually sold in that period. If you buy inventory in bulk and sell it over time, gross profit should reflect the cost assigned to units sold, not simply every inventory payment made that month.
Businesses should also be consistent about valuation methods such as FIFO or weighted average where applicable. Different methods can produce different COGS and gross profit outcomes during periods of changing input costs.
Gross profit vs gross margin vs contribution margin
These terms are related, but not interchangeable. Gross profit is a total dollar amount after direct product costs. Gross margin is that amount expressed as a percentage of revenue. Contribution margin often goes a step further by subtracting variable costs that may not be included in traditional COGS, such as payment processing or variable sales commissions. If you are evaluating product pricing or break-even performance, contribution margin can be extremely useful. If you are reviewing standard financial statements, gross profit is often the first benchmark to check.
When investors and lenders use gross profit
Investors use gross profit to assess pricing power, unit economics, and business quality. Lenders may look at it to understand repayment capacity and the resilience of the core business model. A company with stable or rising gross margin may have stronger competitive advantages, better purchasing discipline, or a more favorable mix of premium products. A company with declining gross margin may be facing cost inflation, discounting pressure, or weakening demand.
Helpful official and university resources
If you want to go deeper into financial statement literacy, inventory accounting, or small business financial management, these sources are strong starting points:
- U.S. Securities and Exchange Commission Investor.gov glossary entry on gross profit
- U.S. Small Business Administration guidance on managing business finances
- NYU Stern industry margin data for benchmarking
Final takeaway
If you remember only one formula, remember this: gross profit equals revenue minus cost of goods sold. From there, always calculate gross margin to understand the percentage retained from each sales dollar. Used correctly, gross profit helps you set prices, negotiate with suppliers, evaluate products, compare periods, and benchmark your business against peers. Used carelessly, it can mislead decision-makers when COGS is incomplete or overhead is mixed in incorrectly. The best practice is to review gross profit regularly, compare it with prior periods, and combine it with cash flow and inventory analysis for a more complete view of business performance.
Use the calculator above whenever you need a quick answer. If you are pricing products, building a budget, or evaluating a company report, mastering gross profit is one of the fastest ways to make better financial decisions.