Gross profit is what remains from sales after paying for the goods or services you sold. Enter revenue and cost of goods sold for the same period and this calculator returns the difference, the figure that has to cover all of your overhead.
How to use the Gross Profit calculator
- Enter Revenue for the period: net sales after returns and discounts, excluding sales tax collected.
- Enter Cost of goods sold for the same period: the direct cost of what you actually sold.
- Read gross profit. A negative number means direct costs exceeded sales, a gross loss.
- To express it as a percentage, divide gross profit by revenue, or use the profit margin calculator for per-unit figures.
How the gross profit calculation works
What belongs in cost of goods sold
Cost of goods sold (COGS) covers costs tied directly to producing or buying what you sold: inventory purchases, raw materials, direct labor on the production line and inbound freight. For a service business, the equivalent is the direct cost of delivering the service, such as subcontractor fees on a client project.
Rent for the office, marketing, administrative salaries, software subscriptions and insurance are operating expenses, not COGS. Putting them in COGS makes gross profit look worse and hides how profitable each sale really is.
COGS counts only the inventory you sold, not everything you bought. The usual formula is beginning inventory plus purchases minus ending inventory. If you bought $60,000 of stock but $8,000 is still on the shelf at period end, and you started with no inventory, COGS is $52,000.
Gross profit versus gross margin
Gross profit is a currency amount; gross margin is that amount as a percentage of revenue. In the example below, $32,340 of gross profit on $84,000 of revenue is a 38.5% gross margin. Tracking the percentage over time shows whether rising supplier costs are eroding profitability even when sales grow.
Once you know gross profit, subtract operating expenses and tax to reach the bottom line. The net profit calculator does that in one step.
Worked example
Revenue: 84000 · Cost of goods sold: 51660
- Revenue for the quarter: $84,000.
- Cost of goods sold: opening stock 12,000 + purchases 50,160 − closing stock 10,500 = 51,660.
- Gross profit: $84,000 − $51,660 = $32,340.00.
- Gross margin: 32,340 ÷ 84,000 = 38.5%.
Result: $32,340.00
Assumptions and limits
Operating expenses, finance costs and income tax are excluded. Negative profit represents a gross loss.
Formula and worked examples last checked November 20, 2026. Spotted a problem? Report an error.
Frequently asked questions
What is the difference between gross profit and net profit?
Gross profit subtracts only the direct cost of goods sold from revenue. Net profit also subtracts operating expenses, interest and taxes, so it shows what the business actually earned.
Does gross profit include wages?
Only wages for people who directly make the product or deliver the service count in cost of goods sold. Salaries for management, sales and administrative staff are operating expenses below the gross profit line.
How do I calculate gross profit margin?
Divide gross profit by revenue and multiply by 100. $32,340 ÷ $84,000 × 100 = 38.5%.
Can gross profit be negative?
Yes. It happens when direct costs exceed sales, for example when goods are sold below cost during a clearance or when supplier prices rise faster than selling prices.