Business Finance · Formula v1.0

Gross Profit Calculator

Calculate gross profit, gross margin and cost of goods sold.

Keep revenue and direct costs in the same period. Enter revenue in dollars and cost of goods sold in dollars. At the worked-example inputs, the gross profit is $400,000. Gross profit is the dollar amount left after direct costs, and it is what pays for everything else in the business. On the example, $400,000 of profit on $1 million of revenue is a 40% margin. Look at it by product or service, since a business with good overall gross profit may have one line that loses money. If you want more profit, the first questions are price and the cost of what you sell. It returns gross profit, gross margin, cost of goods sold.

FreeNo sign-upInputs stay in-browserCSV exportReviewed August 17, 2026
LAST REVIEWEDAugust 17, 2026Inputs stay in your browser
Live calculation

Enter your numbers

Calculated result
Gross profit$400,000
Gross margin40.0%
Cost of goods sold$600,000
Sensitivity check

What if revenue changes?

-10% input$300,000
0% input$400,000
+10% input$500,000

Transparent method

The formula

Gross profit = revenue − cost of goods sold; gross margin = gross profit ÷ revenue

Worked example

Gross profit$400,000
Gross margin40.0%
Cost of goods sold$600,000

Example inputs

Revenue$1,000,000
Cost of goods sold$600,000

How to interpret the result

Gross profit shows what's left after making or buying what you sold, before a single overhead bill gets paid. Rent, salaries, marketing, none of it has touched this number yet. A business can post healthy gross profit and still lose money every month, because gross profit answers whether the core product made sense, not whether the rest of the business fits inside what it left behind.

Before you rely on it

What to check

Confirm every cost in the cost-of-goods figure is actually direct, tied to producing or acquiring what was sold, not general overhead mixed in by habit.

The common error

Where people go wrong with gross profit calculator

Treating gross profit as the bottom line. A rising gross-profit dollar figure driven by rising revenue can mask a shrinking margin percentage, and the percentage is what actually says whether growth is getting more or less efficient.

Sensitivity evidence

How revenue changes the gross profit

Gross Profit Calculator: gross profit and gross margin and cost of goods sold across a range of revenue, every other input held at the worked-example value.
RevenueGross profitGross marginCost of goods sold
$800,000$200,00025.0%$600,000
$900,000$300,00033.3%$600,000
$1,000,000worked example$400,00040.0%$600,000
$1,100,000$500,00045.5%$600,000
$1,200,000$600,00050.0%$600,000

Every input, tested

Which input moves the gross profit most

Gross Profit Calculator: gross profit with each input moved on its own, every other input held at the worked-example value.
InputTested fromToGross profit at each endSwing
Revenue$900,000$1,100,000$300,000 to $500,000$200,000 (50%)
Cost of goods sold$540,000$660,000$460,000 to $340,000$120,000 (30%)

Two variables at once

Gross profit by revenue and cost of goods sold

Gross Profit Calculator: gross profit at each combination of revenue (rows) and cost of goods sold (columns).
Revenue \ Cost of goods sold$480,000$600,000$720,000
$800,000$320,000$200,000$80,000
$900,000$420,000$300,000$180,000
$1,000,000$520,000$400,000$280,000
$1,100,000$620,000$500,000$380,000
$1,200,000$720,000$600,000$480,000

Step by step

The worked example, input by input

Worked-example inputs and the results they produce for the gross profit calculator.
InputValue used
Revenue$1,000,000
Cost of goods sold$600,000
Gross profit$400,000
Gross margin40.0%
Cost of goods sold$600,000

Where the inputs come from

Revenue is net sales for the period and cost of goods sold is the direct cost of what you sold: materials, direct labor, freight-in and manufacturing costs. Take both from your income statement or accounting software. If you offer services, count the direct labor that delivers the service as cost of sales. Keep returns and discounts out of revenue so the figure reflects real sales.

When the result stops applying

Gross profit is before overhead, so a business can show large gross profit and still lose money. Companies classify costs differently, so comparing across firms can mislead. Inventory accounting methods, such as first-in first-out versus average cost, change cost of goods sold when prices move.

What to compare it with

See the percentage on the gross margin calculator and set prices from it on the target price page. The COGS calculator finds the cost figure from inventory and purchases. Follow the profit down through the operating margin and profit margin calculators.

People also ask

Frequently asked questions

What is the difference between gross profit and net profit?

Gross profit subtracts only cost of goods sold, while net profit subtracts every expense including overhead, interest and taxes.

How can I raise gross profit?

Raise prices, negotiate supplier costs, reduce waste and shrink, or shift the sales mix toward higher-margin products.

Does gross profit include labor?

Only direct labor tied to producing goods or delivering services. Administrative and sales salaries are operating expenses.

Common business finance questions

Sources and evidence