ADVERTISEMENT

Mobile Banner
320×100

Gross Profit Calculator

Calculate gross profit, gross margin percentage, and analyze your cost of goods sold

Gross Profit Formulas

Gross Profit
Loading formula...
Gross Margin
Loading formula...
Revenue from Margin
Loading formula...
$
$

What is Gross Profit?

Gross profit is the profit a company makes after deducting the costs associated with making and selling its products, or the costs of providing its services. It's calculated by subtracting the cost of goods sold (COGS) from total revenue. Gross profit appears on a company's income statement and is a key indicator of operational efficiency.

Unlike net profit, gross profit doesn't include overhead expenses like rent, utilities, marketing, or administrative costs. It focuses purely on the direct costs of production or service delivery. This makes it invaluable for understanding how efficiently you're producing and selling your core offerings.

For investors and analysts, gross profit and gross margin are critical metrics that reveal pricing power, production efficiency, and competitive positioning. A declining gross margin often signals trouble, while expanding margins indicate improving operational efficiency or pricing power.

Gross Profit vs Other Profit Metrics

📦

Gross Profit

Revenue minus COGS only. Shows production/service delivery efficiency.

🏢

Operating Profit

Gross profit minus operating expenses (SG&A). Shows total operational efficiency.

💵

Net Profit

Operating profit minus interest and taxes. The bottom line.

📊

EBITDA

Operating profit before depreciation/amortization. Focuses on cash generation.

Gross Margin by Industry

Gross margins vary dramatically by industry due to different cost structures, competition levels, and business models.

IndustryLow MarginAverageHigh Margin
Software/SaaS 70% 80% 90%+
Luxury Goods 50% 65% 80%+
Pharmaceuticals 60% 70% 85%+
Apparel Retail 40% 50% 60%+
Restaurants 55% 65% 75%+
Grocery Stores 20% 25% 35%+
Auto Dealerships 10% 15% 20%+
Airlines 15% 25% 35%+

Improving Gross Profit Margin

💰

Raise Prices Strategically

Even small price increases significantly impact gross margin. Test increases on less price-sensitive products or add premium options.

📉

Reduce COGS

Negotiate better supplier terms, find alternative materials, improve manufacturing efficiency, or reduce waste in production.

📦

Optimize Product Mix

Focus sales efforts on higher-margin products. Consider discontinuing low-margin items that don't drive traffic.

🔧

Improve Operations

Invest in automation, reduce defects and returns, improve inventory management, and streamline the supply chain.

How to use this gross profit calculator

  1. Pick a mode: Calculate Profit (you know revenue and COGS) or Calculate Revenue (you know COGS and a target margin).
  2. In Calculate Profit mode, enter Revenue (Sales) — your total sales for the period before any costs are subtracted.
  3. Enter your Cost of Goods Sold (COGS) — the direct costs tied to producing what you sold: raw materials, direct labor, and inbound freight.
  4. If you're solving for revenue instead, switch modes and type a Target Gross Margin (%) along with COGS — the calculator backs into the revenue you need.
  5. Click Calculate Gross Profit to see gross profit, gross margin, and COGS ratio, along with a visual split of cost vs profit.

Examples

Basic: a small e-commerce store

An online apparel shop has $1,000,000 in annual sales and $600,000 in direct product, packaging, and inbound shipping costs. The founder wants to see whether the margin is healthy for the apparel category.

ResultGross profit is $400,000. Gross margin is 40.0%. COGS ratio is 60.0%.

The calculator subtracts COGS from revenue: $1,000,000 − $600,000 = $400,000. Dividing $400,000 by $1,000,000 gives a 40% gross margin. That sits at the upper end of typical apparel retail (40%–60% gross margin), so the storefront keeps four cents of every sales dollar to fund marketing, rent, and net profit.

Intermediate: a SaaS company benchmarking against peers

A B2B SaaS business pulls $2,500,000 in annual recurring revenue. Hosting, payment processing, and customer-success cost-of-delivery total $500,000. Leadership wants to see if the gross margin clears the 75% bar venture investors expect.

ResultGross profit is $2,000,000. Gross margin is 80.0%. COGS ratio is 20.0%.

Revenue minus COGS gives $2,500,000 − $500,000 = $2,000,000. Dividing by revenue gives 80% gross margin — comfortably inside the 70%–85% band typical of software-as-a-service. That leaves $0.80 of every subscription dollar to cover R&D, sales, and operating expenses, which is why SaaS investors prize gross margin so heavily.

Reverse: pricing a product to hit a 65% margin

A coffee roaster knows it costs $7 to produce a 12 oz bag (beans, packaging, roasting labor). It wants to price the bag to hit a 65% gross margin. Using Calculate Revenue mode, it enters the COGS and target margin to find the right shelf price.

ResultRequired revenue (price) is about $20.00 per bag. Gross profit is about $13.00, with a 65.0% gross margin and a 35.0% COGS ratio.

The calculator uses Revenue = COGS / (1 − Margin), so $7 / (1 − 0.65) = $7 / 0.35 = $20.00. At that price, gross profit is $20.00 − $7.00 = $13.00 per bag. Note that margin (gross profit / revenue) is not the same as markup (gross profit / COGS) — a 65% margin corresponds to about a 186% markup on cost.

How it works

In Calculate Profit mode, the calculator applies the core identity Gross Profit = Revenue − COGS. It then divides gross profit by revenue to express the result as a percentage: Gross Margin = (Gross Profit / Revenue) × 100. The COGS ratio is the mirror image: COGS / Revenue × 100. Together these three numbers tell you how much of each sales dollar survives the cost of producing what you sold.

In Calculate Revenue mode, the calculator solves the same identity for revenue given a target margin. It rearranges to Revenue = COGS / (1 − Margin). Because the formula divides by (1 − Margin), margins of 100% or more are impossible — that's why the input is capped just below 100% in the form.

COGS includes only the direct costs of producing and delivering what was sold during the period: raw materials, direct production labor, manufacturing overhead tied to production, inbound freight, and (for resellers) the wholesale cost of goods. It excludes selling, general, and administrative costs like marketing, executive salaries, rent for corporate offices, and R&D — those belong below gross profit on the income statement. Under U.S. GAAP this distinction is set out in ASC 330 (Inventory) and revenue is recognized under ASC 606.

Service businesses without physical inventory still have a cost of services or cost of revenue line — usually direct labor for billable staff plus any third-party costs passed through to clients. The calculator treats that figure as COGS, so the same math applies to consulting, agencies, and SaaS hosting costs.

When to use this calculator

  • Pricing a new product. Switch to Calculate Revenue mode, enter your unit cost and the gross margin you need to cover operating costs and profit, and read off the price you have to charge.
  • Reviewing a P&L line by line. Plug in monthly or quarterly revenue and COGS to see whether margin is stable, improving, or sliding — and how a single bad month compares to the trend.
  • Benchmarking against your industry. Compare your margin to the industry table in this page. A grocery store at 25% is normal; a SaaS business at 25% has a serious cost-of-delivery problem.
  • Quoting custom or project-based work. Estimate direct labor and materials for a project, set a target margin, and use the reverse calculation to produce a quote that protects profitability.
  • Spotting margin compression early. Run the same revenue figure with last year's COGS and this year's COGS. The gap in gross profit shows exactly how much rising input costs are eating before SG&A even hits.

Common mistakes

  • MistakeConfusing gross margin with markup
    FixMargin is gross profit divided by revenue. Markup is gross profit divided by cost. A product costing $50 sold for $100 has a 50% margin but a 100% markup. Mixing these up routinely under-prices products.
  • MistakeIncluding SG&A in COGS
    FixMarketing, sales salaries, executive pay, office rent, and software not tied to production belong below the gross profit line. Including them inflates COGS and understates gross margin, hiding pricing-power problems.
  • MistakeComparing margins across different industries
    FixA 30% gross margin is excellent for a grocery store and disastrous for SaaS. Always compare to peers in the same industry — public-company filings on SEC EDGAR or industry surveys are the right benchmark.
  • MistakeIgnoring discounts, returns, and allowances
    FixUse net revenue (gross sales minus returns, refunds, and trade discounts) in the Revenue field. Otherwise gross margin will look better than what actually flows to the income statement.
  • MistakeAssuming service businesses have no COGS
    FixCost of services — billable staff labor, contractor pass-through, hosting and infrastructure for SaaS — is the service-industry equivalent of COGS. Leaving it out makes gross profit equal to revenue, which is never true.
  • MistakeTreating gross profit as cash in the bank
    FixGross profit must still cover rent, marketing, R&D, interest, and taxes before any of it becomes net income or free cash flow. Healthy gross margin is a necessary but not sufficient condition for profitability.

Frequently asked questions

What's a good gross profit margin?

It depends heavily on industry. For software companies, 70-80% is typical. For retailers, 25-50% is common. Compare your margin to industry benchmarks and competitors rather than using a universal target.

What's included in Cost of Goods Sold?

COGS includes all direct costs of production: raw materials, direct labor, manufacturing overhead directly tied to production, and freight-in costs. It excludes selling, general, and administrative expenses.

Why is my gross margin declining?

Common causes include rising material costs, increased competition forcing price cuts, less efficient production, changes in product mix toward lower-margin items, or supplier price increases not passed to customers.

Is gross profit the same as contribution margin?

No. Gross profit uses total COGS (including fixed manufacturing overhead), while contribution margin uses only variable costs. Contribution margin is more useful for decision-making about individual products.

How is gross profit different from net profit?

Gross profit subtracts only COGS from revenue. Net profit subtracts everything — COGS, operating expenses (rent, marketing, salaries), depreciation, interest, and taxes. A company with a strong gross margin can still post a net loss if overhead is too high.

What's the difference between gross profit and operating profit?

Operating profit (also called operating income or EBIT) equals gross profit minus selling, general, and administrative expenses (SG&A), R&D, and depreciation. Gross profit reflects production efficiency; operating profit reflects total operating efficiency before financing and taxes.

How does a service business calculate gross profit?

Use 'cost of services' or 'cost of revenue' in place of COGS — typically direct labor for billable staff plus any pass-through third-party costs. The same Revenue minus Cost formula applies, and the resulting margin is comparable to product-business gross margin.

How can I increase gross profit without raising prices?

Reduce COGS by renegotiating supplier contracts, switching to lower-cost equivalent inputs, cutting waste and rework, improving labor productivity, or shifting the product mix toward higher-margin items. Each dollar of COGS you remove drops straight into gross profit.

Does gross profit include sales tax or VAT?

No. Sales tax, VAT, and similar taxes collected from customers are pass-through to the tax authority and are excluded from revenue under both U.S. GAAP (ASC 606) and IFRS 15. Both Revenue and COGS in this calculator should be entered net of those taxes.

Why does the same margin produce different markups?

Margin is gross profit over revenue; markup is gross profit over cost. A 50% margin equals a 100% markup, a 60% margin equals a 150% markup, and a 75% margin equals a 300% markup. Retailers commonly think in markup, while accountants and investors think in margin — the calculator reports margin.

Sources

Methodology

This calculator applies the income-statement identity Gross Profit = Revenue − COGS and reports gross margin as Gross Profit / Revenue × 100. In Calculate Revenue mode it rearranges the identity to Revenue = COGS / (1 − Margin), capping margin just below 100% to avoid division by zero. COGS is defined consistently with U.S. GAAP (ASC 330 for inventoriable costs, ASC 606 for revenue recognition): direct materials, direct labor, and production overhead are included; SG&A, R&D, interest, and taxes are excluded and belong below the gross profit line.

Pro Tips

  • Bookmark this calculator for quick access in the future
  • Use the share button to send your results to others
  • Try different scenarios to compare outcomes
  • Check out our related calculators for more insights

Found this calculator helpful? Share it with others:

Embed this calculator