Gross Profit Calculator

Gross Profit Calculator

Calculate your gross profit and gross margin for any period. Enter your sales revenue and cost of goods sold (COGS), or let the calculator work out COGS from your opening stock, purchases and closing stock.

Gross profit & marginCOGS from stockAny currencyLast updated: November 3, 2026

Calculate gross profit

Sales minus returns and discounts
Stock mode only
Stock mode only
Stock mode only

Gross profit formula

Gross profit

Gross profit = revenue − cost of goods sold

Gross margin

Gross margin % = gross profit ÷ revenue × 100

COGS from stock

COGS = opening stock + purchases − closing stock

The standard periodic-inventory method used by small retailers and wholesalers.

What goes into cost of goods sold?

Include in COGSLeave out (operating expenses)
Stock bought for resaleRent of offices and shops
Raw materials and partsMarketing and advertising
Direct production labourAdmin and sales salaries
Inbound freight and import dutySoftware and utilities for the office

Worked example

  1. Opening stock 15,000 + purchases 70,000 − closing stock 13,000 = COGS 72,000
  2. Gross profit = 120,000 − 72,000 = 48,000
  3. Gross margin = 48,000 ÷ 120,000 = 40%

Gross profit vs net profit

Gross profit shows how profitable your products are before overheads. Net profit subtracts every other cost — rent, wages, marketing, interest and tax — to show what the business really earns. A healthy gross margin with a poor net margin usually points to overheads that are too high. Use the Net Profit Calculator for the full picture.

Frequently asked questions

How do I calculate gross profit?

Subtract the cost of goods sold from revenue. Revenue of 120,000 and COGS of 72,000 gives 48,000 gross profit.

What is a good gross profit margin?

It varies widely: around 20–30% for groceries, 45–60% for clothing and 70–90% for software. Compare with your industry.

Are wages part of COGS?

Only wages for people who directly make the product or deliver the service. Office, sales and management salaries are operating expenses.

Results are for planning. Follow your local accounting standards for official accounts.

Scroll to Top