Skip to content
CalculatPage

Gross Profit Calculator

Gross profit shows what's left after the direct cost of making or buying what you sold.

Updated November 2026 · How we build calculators

Result

Your result will appear here

Enter your numbers, then press Calculate.

How the Gross Profit Calculator works

Gross profit equals net sales minus COGS. Gross margin divides gross profit by net sales.

Formula used

Gross profit = net sales − COGS

Gross margin = gross profit ÷ net sales

Step-by-step example

Using the default values in the calculator above:

  1. Gross sales (revenue): $250,000
  2. Cost of goods sold (COGS): $140,000
  3. Returns & refunds: $0
  4. Discounts & allowances: $0
  5. Freight-in / direct shipping costs (added to COGS): $0

The calculator then applies the formula above and returns:

  • Gross profit: $110,000.00 (44.00% gross margin)
  • Gross margin: 44.00%
  • COGS as % of sales: 56.00%
  • Gross profit per $1 of sales: $0.44

What-if scenarios

Each table changes one input and keeps everything else at the calculator's default values.

If you change “Gross sales (revenue)”
Gross sales (revenue)Gross profit
$130,000-$10,000.00
$190,000$50,000.00
$250,000 (default)$110,000.00
$380,000$240,000.00
$500,000$360,000.00
If you change “Cost of goods sold (COGS)”
Cost of goods sold (COGS)Gross profit
$70,000$180,000.00
$110,000$140,000.00
$140,000 (default)$110,000.00
$210,000$40,000.00
$280,000-$30,000.00

Gross profit for different gross sales (revenue) and cost of goods sold (COGS)

Every other input is left at its default value.

Gross profit: Gross sales (revenue) (rows) by Cost of goods sold (COGS) (columns)
Gross sales (revenue)$70,000$140,000$210,000$280,000
$130,000$60,000.00-$10,000.00-$80,000.00-$150,000.00
$190,000$120,000.00$50,000.00-$20,000.00-$90,000.00
$250,000$180,000.00$110,000.00$40,000.00-$30,000.00
$380,000$310,000.00$240,000.00$170,000.00$100,000.00
$500,000$430,000.00$360,000.00$290,000.00$220,000.00

Tips and background

Track gross margin by product line to find what to promote.

Which profit calculator should you use?

Use the Gross Profit Calculator when you want gross profit and gross margin from sales and cost of goods sold. If your question is a bit different, one of these may fit better:

  • Profit Calculator: use it when you want a quick profit or loss from total revenue and costs, with return on investment and profit after tax.
  • Profit Margin Calculator: use it when you want margin and markup, or the price needed to hit a target margin.
  • Net Profit Calculator: use it when you want the bottom line after operating costs, interest and taxes.

Gross profit and gross margin

Gross profit equals net sales minus cost of goods sold. With $250,000 of sales and $140,000 of COGS, gross profit is $110,000 and the gross margin is 44%. Net sales exclude returns, discounts and allowances, so enter them to avoid overstating profit.

What belongs in COGS

Materials, direct labor, manufacturing costs and freight-in count; rent, marketing and admin salaries do not, since they are operating expenses. Gross margin by product shows which items deserve promotion. Move down the income statement with the net profit calculator and compare with margin pricing.

How do returns, discounts and freight change gross profit?

Each one matters. The starting point is $250,000 of sales and $140,000 of cost of goods sold.

CaseGross profitGross margin
Starting point$110,00044.00%
$10,000 of returns$100,00041.67%
$5,000 of discounts$105,00042.86%
$8,000 of freight-in$102,00040.80%
All three$87,00037.02%

Ignoring all three would overstate gross profit by $23,000 in this example.

Is it better to raise sales or cut cost of goods?

Compare equal percentage changes with care. Cutting cost of goods from $140,000 to $130,000 raises gross profit to $120,000 and the margin to 48.00%. Raising revenue by 5% to $262,500 with no change in cost, as a price rise would, gives $122,500 and 46.67%. More units sold would raise cost of goods as well, so that second figure does not apply to growth in volume.

What goes into cost of goods sold?

Generally it includes the direct cost of what you sold, such as materials, the purchase price of resale stock and direct production costs. Rent for an office, marketing and administrative pay are usually operating expenses. Accounting and tax rules decide the details, and inventory methods affect the figure. Use the same definition every period, or your margins will not be comparable.

How can you use gross margin by product?

Run the calculation for each product line. A product with high sales but a thin margin may contribute less than a smaller one. Margin alone is not enough: look at how many units sell, how much storage or labor each needs and whether one product helps sell another. To see what remains after overhead, use the net profit calculator.

Common mistakes to avoid with the Gross Profit Calculator

  • Counting overhead as COGS.
  • Using gross sales instead of net sales.
  • Comparing margins across industries.

Frequently asked questions

What is included in COGS?

Materials, direct labor and manufacturing costs.

Is gross profit the same as net profit?

No. Net profit also subtracts operating expenses, interest and taxes.

What is a good gross margin?

It varies widely: software can exceed 70%, retail and food are lower.

How do I calculate gross profit?

Net sales minus cost of goods sold.