Last updated:

Finance calculator

Gross Profit Calculator

Enter revenue and cost of goods sold to calculate gross profit, gross profit margin, and gross profit ratio instantly. The target margin field works in reverse: enter the margin you want and see the maximum COGS and minimum revenue needed to hit it.

Gross Profit = Revenue − COGS  |  Gross Margin = (Gross Profit ÷ Revenue) × 100

Revenue and cost of goods sold

Enter your numbers

Formula: Gross profit = revenue − COGS    Gross margin % = (gross profit ÷ revenue) × 100

Revenue breakdown

Enter revenue to see the breakdown.
COGS Gross Profit

On This Page

How to Use This Calculator

Enter two numbers and the results appear immediately. The calculator shows gross profit in dollars, gross profit margin as a percentage, gross profit ratio as a decimal, and the COGS share of revenue — all from the same two inputs.

Enter revenue and COGS

Revenue is your total sales amount before any deductions. COGS (cost of goods sold) covers only the direct costs tied to producing what you sold: raw materials, direct labor, manufacturing overhead, and the purchase cost of inventory. It does not include rent, salaries for office staff, marketing, or any other operating expense. If you are unsure what to include in COGS, the accounting section below covers this in detail.

Read the results

The main result is the gross profit margin percentage. The result grid below it shows gross profit in currency, the gross profit ratio (the margin as a decimal), and what percentage of revenue COGS represents. The stacked bar to the left visualizes the revenue split between cost and profit at a glance.

Use the target margin field

Enter a target gross margin percentage to run a reverse calculation. The calculator shows the maximum COGS you can afford at your current revenue to hit that margin, and the minimum revenue needed at your current COGS. These two numbers answer the most common pricing and cost-control questions without manual algebra.

What Is Gross Profit?

Gross profit is revenue minus the direct cost of producing what you sold. It is the first profit figure that appears on a standard income statement, sitting above operating profit and net profit.

The word "gross" here means before other deductions. Gross profit has not yet accounted for rent, utilities, insurance, salaries outside production, marketing, depreciation, interest, or taxes. Those come later. Gross profit only measures how much money remains after covering the direct costs of making or buying the goods or services you sold.

Think of it this way: a clothing retailer buys a jacket for $40 and sells it for $100. Gross profit on that sale is $60. The retailer still needs to pay shop rent, staff wages, and credit card fees from that $60 before arriving at net profit. But gross profit tells you whether the core buying-and-selling activity is viable before those overhead costs eat into it.

Why gross profit matters on its own:

Gross Profit Formulas

There are three related formulas. They all start from the same two numbers but express the result differently depending on what you need.

Gross Profit Formula

The base calculation. Subtract COGS from revenue to get the dollar amount of gross profit.

Gross Profit = Revenue − Cost of Goods Sold (COGS)

Example: Revenue of $150,000 minus COGS of $90,000 = $60,000 gross profit. This is the absolute amount, useful for cash planning and income statement reporting.

Gross Profit Margin Formula

Expresses gross profit as a percentage of revenue. This is the number most analysts, investors, and managers track because percentages are comparable across time periods and business sizes.

Gross Profit Margin = (Gross Profit ÷ Revenue) × 100

Using the same example: ($60,000 ÷ $150,000) × 100 = 40%. For every $1 of revenue, 40 cents covers direct costs and contributes to operating expenses and profit.

Gross Profit Ratio

The same calculation as gross margin, expressed as a decimal instead of a percentage. It is used in financial modeling and ratio analysis where decimal form is more convenient.

Gross Profit Ratio = Gross Profit ÷ Revenue

$60,000 ÷ $150,000 = 0.40. A ratio of 0.40 is identical in meaning to a 40% gross margin. Some textbooks call this the "gross profit rate" — same formula, different name.

Reverse: Finding COGS from a Target Margin

If you know your revenue and want to hit a specific gross margin, rearrange the formula to find the maximum allowable COGS.

Max COGS = Revenue × (1 − Target Margin ÷ 100)

Revenue of $150,000 with a 45% target margin: $150,000 × (1 − 0.45) = $150,000 × 0.55 = $82,500 maximum COGS. This is the pricing and procurement target. The target margin field in the calculator above handles this automatically.

Gross Profit vs Net Profit vs Operating Profit

These three measures all appear on the income statement. Each one subtracts a different layer of costs from revenue. Confusing them is one of the most common mistakes in business financial analysis.

The three profit levels

Gross profit: Revenue minus COGS only. No operating expenses, no interest, no taxes. It measures the profitability of the product or service itself.

Operating profit (EBIT): Gross profit minus operating expenses (salaries, rent, utilities, marketing, depreciation). It measures how profitable the business is from its core operations before financing costs.

Net profit: Operating profit minus interest and taxes. The bottom line. What the business actually keeps after all obligations.

Here is why the distinction matters. A business can have a 60% gross margin and still lose money at the net level if operating expenses are bloated. Conversely, a business with a 20% gross margin in a high-volume, low-overhead model (like a grocery distributor) can be consistently profitable at the net level. Gross margin tells you about pricing and production efficiency; net margin tells you about the whole business. See the Profit Margin Calculator for a full breakdown that includes operating and net margins from a single revenue figure.

Gross Profit Margin by Industry

What counts as a "good" gross margin depends entirely on the industry. Comparing a software company to a grocery chain using gross margin alone is misleading. Each business model has a different cost structure and a different baseline.

High-margin industries

Software and SaaS: 60-80%. Once the software is built, the marginal cost of serving an additional customer is near zero. This is why software companies can sustain very high gross margins.

Professional services (consulting, legal, accounting): 50-70%. The main cost is labor, and billing rates are set well above hourly cost. Overhead is low relative to revenue.

Pharmaceuticals: 60-80%. Drug development is expensive, but the marginal cost of producing a pill once approved is very low compared to the selling price.

Mid-range industries

Manufacturing: 25-40%. Materials, direct labor, and production overhead create substantial COGS. Margins vary by product complexity and supply chain leverage.

Restaurants: 60-70% at the food cost level (gross margin on food is high), but operating expenses (labor, rent, utilities) are extremely high, which compresses net margins to 3-9%.

Retail apparel: 40-60%. Mark up from wholesale cost is substantial, but returns, discounting, and inventory shrinkage reduce effective margins.

Lower-margin industries

Grocery and food retail: 20-30%. High volume, price competition, and perishable inventory keep margins thin. The business model depends on turnover speed, not margin width.

Construction and contracting: 15-25%. Materials and subcontractor costs dominate COGS. Margins are thin but projects can be large in absolute dollar terms.

For pricing decisions that feed directly into gross margin, the Markup Calculator shows how markup percentage translates to gross margin, and vice versa, which is a calculation that trips up many business owners. The Break-Even Point Calculator uses gross margin to find the sales volume needed to cover fixed costs.

Gross Profit in Accounting and Excel

On a formal income statement, gross profit appears as the first subtotal. The format is standardized across accounting systems and required under both GAAP and IFRS.

Income statement structure

A typical income statement reads top to bottom:

To calculate gross profit from an income statement, find the "Net Revenue" or "Net Sales" line and the "Cost of Goods Sold" or "Cost of Sales" line. Subtract the second from the first. Some companies label COGS as "Cost of Revenue," which is common in service businesses where no physical goods are produced.

What goes into COGS

COGS includes direct costs that vary with production or sales volume. For a product business: raw materials, direct labor (factory workers, not office staff), manufacturing overhead (factory rent, equipment depreciation, utilities tied to production), and shipping to customers if included in the sale price. For a service business: contractor costs, direct labor for service delivery, and materials consumed in providing the service.

COGS does not include: rent for office space, salaries for sales and marketing teams, accounting and legal fees, advertising, or general administrative costs. Those belong in "operating expenses" below the gross profit line. Putting overhead into COGS overstates COGS and understates gross profit, which distorts margin benchmarking.

FIFO vs LIFO and gross profit

For businesses that hold inventory, the accounting method for valuing inventory (FIFO: first in, first out; LIFO: last in, first out) affects COGS and therefore gross profit. In a period of rising prices, FIFO assigns lower costs to COGS (older, cheaper inventory sold first), resulting in higher gross profit. LIFO does the opposite. FIFO is required under IFRS and more common globally. LIFO is permitted under US GAAP and used by some large US retailers for tax advantages.

Gross profit in Excel

In a spreadsheet where revenue is in cell B2 and COGS is in B3:

For ongoing tracking, use absolute references ($B$2) when the revenue or COGS cell is referenced in multiple formulas. The ROI Calculator is the natural next step once gross profit is established, showing whether the investment behind those revenues is generating an acceptable return.

Worked Examples

Example 1: Retail Clothing Store

A boutique has monthly revenue of $45,000 and buys inventory for $27,000. What is the gross profit and gross margin?

Gross profit = $45,000 − $27,000 = $18,000. Gross margin = ($18,000 ÷ $45,000) × 100 = 40%. For every $100 in sales, $40 is available to cover rent, wages, and other operating costs.

Example 2: SaaS Subscription Business

A software company earns $800,000 in annual recurring revenue. Direct costs (hosting, support staff, payment processing) total $160,000. What is the gross margin?

Gross profit = $800,000 − $160,000 = $640,000. Gross margin = ($640,000 ÷ $800,000) × 100 = 80%. This is typical for software with minimal marginal delivery costs. The remaining $640,000 funds R&D, sales, marketing, and G&A.

Example 3: Find the Maximum COGS for a 50% Target Margin

A manufacturer targets a 50% gross margin on projected revenue of $200,000. What is the maximum allowable COGS?

Max COGS = $200,000 × (1 − 0.50) = $200,000 × 0.50 = $100,000. If production costs are projected at $115,000, the business needs to either raise prices, reduce material costs, or renegotiate supplier terms to hit the margin target.

Example 4: Restaurant Food Cost

A restaurant brings in $30,000 in food and drink revenue in a week. Food and beverage costs (COGS) are $10,500. What is the gross margin?

Gross profit = $30,000 − $10,500 = $19,500. Gross margin = ($19,500 ÷ $30,000) × 100 = 65%. This is the food cost gross margin. It looks strong, but labor, rent, and utilities absorb most of that $19,500, leaving net margins in the single digits for most restaurants.

Example 5: Required Revenue from COGS and Target Margin

A contractor has direct project costs (materials and subcontractors) of $75,000 and wants to achieve a 35% gross margin. What revenue must they quote?

Required revenue = $75,000 ÷ (1 − 0.35) = $75,000 ÷ 0.65 = $115,385. Quoting below this figure means gross margin falls under 35%. This is the pricing floor, not the target price.

Frequently Asked Questions

What is gross profit?

Gross profit is revenue minus the cost of goods sold (COGS). It measures how much money remains from sales after covering the direct costs of producing or purchasing what was sold. It does not account for operating expenses, interest, or taxes. Those deductions come further down the income statement to produce operating profit and net profit.

How do you calculate gross profit?

Subtract COGS from revenue: Gross Profit = Revenue − COGS. If revenue is $200,000 and COGS is $120,000, gross profit is $80,000. To express it as a percentage (gross margin), divide gross profit by revenue and multiply by 100: ($80,000 ÷ $200,000) × 100 = 40%.

What is gross profit margin and how is it calculated?

Gross profit margin is gross profit expressed as a percentage of revenue. Formula: (Gross Profit ÷ Revenue) × 100. A 40% gross margin means that for every $1 of revenue, $0.40 remains after covering direct production costs. It is the most widely used measure for comparing profitability across businesses of different sizes.

What is the difference between gross profit margin and gross profit ratio?

They describe the same relationship using different formats. Gross profit margin is a percentage (e.g., 40%). Gross profit ratio is a decimal (e.g., 0.40). Both are calculated as Gross Profit ÷ Revenue. Some accounting textbooks prefer "ratio" in decimal form for use in financial modeling formulas; most business conversations use the percentage form.

How is gross profit calculated from an income statement?

Find "Net Revenue" (or "Net Sales") and "Cost of Goods Sold" (or "Cost of Sales" or "Cost of Revenue") on the income statement. Subtract COGS from Net Revenue. The result is labeled "Gross Profit" or "Gross Margin" on most formatted income statements. It appears as the first subtotal, before operating expenses.

What is a good gross profit margin?

It depends on the industry. Software companies often achieve 70-80%. Retailers typically target 40-60%. Manufacturers often run 25-40%. Grocery and distribution businesses operate on 20-30%. Compare your gross margin to industry peers, not to an absolute standard. A 25% gross margin can be excellent in distribution and inadequate in SaaS.

How do you calculate gross profit percentage?

Gross profit percentage is the same as gross profit margin: (Gross Profit ÷ Revenue) × 100. For example, if gross profit is $45,000 on revenue of $100,000, the gross profit percentage is 45%. The term "gross profit percentage" is commonly used in retail and hospitality to track product-level profitability.

How do you calculate gross profit rate?

Gross profit rate is another name for gross profit ratio: Gross Profit ÷ Revenue. The result is a decimal between 0 and 1 (assuming positive profit). A gross profit rate of 0.45 is identical to a 45% gross margin. The "rate" terminology appears in accounting textbooks and some financial analysis contexts.

What is the difference between gross profit and net profit?

Gross profit is revenue minus COGS only. Net profit deducts everything else: operating expenses (rent, salaries, marketing, utilities), depreciation, interest on debt, and income taxes. A business can have high gross profit and still report a net loss if its operating expenses are very high. Gross profit measures product economics; net profit measures overall business performance.

How do you calculate gross profit using FIFO?

Under FIFO (first in, first out), the oldest inventory costs are assigned to COGS first. If you bought 100 units at $10 in January and 100 units at $12 in February, then sold 100 units in March, COGS under FIFO is $10 × 100 = $1,000 (the January batch). This typically produces higher gross profit during periods of rising costs compared to LIFO, because older, cheaper inventory is expensed first.

How do you calculate gross profit for a service business?

Replace COGS with "Cost of Revenue" or "Direct Service Costs": the labor, contractor fees, and materials directly tied to delivering the service. For a consulting firm, this is the billable hours of the consultants delivering the project, not salaries of sales or admin staff. Gross profit = Total Service Revenue − Direct Service Delivery Costs. The margin calculation is identical to a product business.

References

  1. Investopedia: Gross Profit: Definition, formula, and examples of gross profit and gross profit margin with industry context.
  2. AccountingTools: What Is Gross Profit?: Accounting-focused explanation covering COGS composition, income statement placement, and gross profit analysis.
  3. Corporate Finance Institute: Gross Profit: Financial analysis perspective on gross profit margins, industry benchmarks, and their use in valuation.

Method

Author, Review, and Formula Method

Written by Calculators Labs Editorial Team
Reviewed by Calculators Labs
Last updated

The Gross Profit Calculator uses Gross Profit = Revenue − COGS. The calculator reads Revenue, COGS, Target margin (optional), applies the formula, and shows the result with practical rounding so the answer is easy to check.

For calculators with units, measurements are kept in one unit system before the final result is displayed. The steps are written to help students, teachers, and everyday users see how the answer was produced.