Payments, cash flow and bookkeeping

How to Calculate Gross Profit and Net Profit (With Margin Formulas)

Gross profit vs net profit: calculate both and their margins step by step, understand COGS, and see why a healthy gross margin can still mean a weak net profit.

Nested rings: revenue on the outside, gross profit inside it and net profit at the centre

Quick answer

Gross profit vs net profit comes down to which costs you take off. Gross profit = revenue − cost of goods sold (COGS). Net profit = gross profit − operating expenses − depreciation − interest − tax. Gross margin % = gross profit ÷ revenue × 100. Net margin % = net profit ÷ revenue × 100.

Cost of goods sold

COGS is the direct cost of what you sold:

  • For a trader: opening stock + purchases − closing stock.
  • For a manufacturer: materials, direct labour and production costs.
  • For a service business: direct costs such as freelancers or materials used on projects.

Worked example: a retailer

A Bengaluru kitchenware shop, for the year, excluding GST:

Amount
Revenue₹40,00,000
Opening stock₹6,00,000
Purchases₹27,00,000
Closing stock₹7,00,000
COGS (6 + 27 − 7 lakh)₹26,00,000
Gross profit (35% margin)₹14,00,000
Operating expenses: rent ₹2,40,000, salaries ₹4,20,000, electricity ₹60,000, marketing ₹1,20,000, other ₹60,000− ₹9,00,000
Depreciation− ₹50,000
Interest− ₹30,000
Profit before tax (10.5%)₹4,20,000
Tax (illustrative)− ₹1,05,000
Net profit (7.9% margin)₹3,15,000
Funnel from ₹40 lakh revenue to ₹14 lakh gross profit (35%), ₹4.2 lakh profit before tax and ₹3.15 lakh net profit (7.9%)
Gross margin shows pricing; net margin shows the whole business.

Why both matter

  • Gross margin shows pricing power and control of direct costs.
  • Net margin shows whether the whole business, including overheads, is efficient.

A strong gross margin with a weak net margin points to high overheads. For a service business, the same idea applies project by project; see how to track project profitability.

Margin vs markup

Markup is profit as a percentage of cost; margin is profit as a percentage of the selling price. An item that costs ₹650 and sells for ₹1,000 has a markup of 53.8% but a margin of 35%. Confusing the two leads to underpricing: a 35% markup on ₹650 gives a price of only ₹877.50.

Markup versus margin on one product costing ₹650 and selling for ₹1,000: ₹350 profit is a 53.8% markup on cost but a 35% margin on price
Confusing markup with margin is a common cause of underpricing.

Common mistakes

  • Including GST in revenue.
  • Ignoring changes in stock when calculating COGS.
  • Comparing margins across very different kinds of business.

Frequently asked questions

Can gross profit be negative?
Yes, if you sell below direct cost. It signals a pricing or cost problem that needs fixing before anything else.
Is net profit the same as cash in the bank?
Where do these numbers come from?
From your profit and loss statement, which lists revenue, direct costs and expenses for the period.
What is a good net margin?
It depends heavily on the industry. Track your own margin over time and compare with similar businesses rather than a single benchmark.

Next step

Work out last quarter's gross and net margins, and check whether you price using markup or margin. PikZiy Books calculates both margins from your invoices, purchases and expenses, excluding GST.

Join the PikZiy Books waitlist

Last reviewed: 22 October 2026. Figures in the examples are illustrative.
OPENING NOVEMBER 2026

Your next chapter.
In one place.

Sign-ups open in November 2026. Be first to hear when you can start.

Join the waitlist