Gross Margin Calculator
BusinessGross margin strips out everything but the direct cost of what you sell, revealing how much each sale contributes before overheads — enter revenue and COGS to see it instantly.
In short: The Gross Margin Calculator is a free online tool that lets you find gross profit and gross margin from your revenue and cost of goods sold — instantly, with charts, a worked example and the exact formula.
Your inputs
Your inputs
- Revenue (net sales)
- ₹1,00,000
- Cost of goods sold (COGS)
- ₹60,000
Gross margin
40%
Gross profit
₹40,000
COGS share
60%
of revenue
Revenue, COGS and gross profit
How much of your revenue is direct cost and how much is gross profit.
Gross profit breakdown
| Metric | Amount |
|---|---|
| Revenue | ₹1,00,000 |
| Cost of goods sold | ₹60,000 |
| Gross profit | ₹40,000 |
Gross profit is revenue left after only the direct cost of goods sold.
How the Gross Margin Calculator works
Formula
- Revenue
- Net sales, excluding GST
- COGS
- Direct cost of goods sold
- Gross profit
- Revenue minus COGS
Step-by-step calculation
Worked with the default values.
- 1
Gross profit
₹1,00,000 − ₹60,000
= ₹40,000
- 2
Gross margin
Gross profit ÷ Revenue × 100
= 40%
- 3
COGS share
COGS ÷ Revenue × 100
= 60%
How it works
- Gross profit is revenue minus only the direct cost of producing what you sold (COGS).
- Gross margin turns that profit into a percentage of revenue you keep before overheads.
- The COGS share is the mirror image — the slice of every rupee eaten by direct costs.
Examples
₹1,00,000 in sales with ₹60,000 of COGS
₹40,000 gross profit → a 40% gross margin; COGS is 60% of revenue.
A trader selling ₹5,00,000 of goods bought for ₹3,50,000
₹1,50,000 gross profit → a 30% gross margin.
Understanding the Gross Margin Calculator
Why gross margin sits at the top
Gross margin is the first profitability number on any income statement, and it answers a focused question: after paying only the direct cost of what you sold, how much is left to cover everything else? A business with ₹1,00,000 of sales and ₹60,000 of cost of goods sold keeps ₹40,000 of gross profit — a 40% gross margin. Everything below this line, from rent to salaries to interest, is paid out of that gross profit.
- Gross profit = Revenue − COGS
- Gross margin = Gross profit ÷ Revenue × 100
What belongs in COGS
The accuracy of gross margin hinges on defining cost of goods sold correctly. COGS captures only the direct costs of producing or buying what you actually sold: raw materials, the purchase price of stock, direct labour and inward freight. It deliberately excludes indirect costs — marketing, admin salaries, office rent and overheads — which belong further down the statement. Misclassifying an overhead as COGS understates gross margin; the reverse overstates it.
Reading the number in context
A gross margin means little in isolation. Software and services routinely clear 70% because their direct costs are tiny, while retail and distribution live at 20-40%, and manufacturing swings with input prices. The only fair comparison is against direct competitors in the same trade. Watch the trend too: a slowly falling gross margin is often the earliest sign of rising input costs or discount creep, long before it shows up in net profit.
From gross margin to real profit
Gross margin tells you whether the core product is sound; it does not tell you whether the business makes money. A healthy 45% gross margin can still end in a loss if overheads are bloated. That is why gross margin and net margin should always be read together — the gap between them is exactly what overheads, salaries, interest and tax consume. To lift gross margin, attack it at the source: negotiate cheaper inputs, cut wastage and freight, nudge prices where the market allows, and steer the sales mix toward higher-margin lines. Because this figure sits at the very top of the P&L, every rupee saved here drops almost untouched to the bottom line.
Pros
- Isolates product-level profitability before overheads muddy the picture.
- Sits at the top of the P&L, so gains flow straight to the bottom line.
- Simple to compute from just revenue and COGS.
- Great for comparing products, ranges or suppliers on a like-for-like basis.
- Flags pricing or sourcing problems that cost-cutting elsewhere cannot fix.
Cons
- Ignores overheads, so a strong gross margin can still hide an unprofitable business.
- Depends on classifying costs correctly as direct versus indirect.
- Not comparable across very different industries.
- A single blended figure masks weak individual products.
Tips
- 1Define COGS consistently — direct costs only — so margins stay comparable over time.
- 2Track gross margin per product to see which lines really carry the business.
- 3Use net sales, excluding GST and returns, for an accurate margin.
- 4Watch for gross-margin erosion; it usually signals rising input costs early.
- 5Pair gross margin with net margin to see how much overheads eat into profit.
Frequently asked questions
Everything you need to know about the Gross Margin Calculator.
What is the difference between gross margin and net margin?
What counts as cost of goods sold?
What is a good gross margin?
Should revenue include GST?
Why is gross margin important?
Can gross margin be negative?
How is gross margin different from markup?
How can I improve gross margin?
People also calculate
Related tools you might find useful.
Profit Margin Calculator
Work out net profit, profit margin and markup from your revenue and cost.
Markup Calculator
Set a selling price by adding a markup percentage to your cost.
ROI Calculator
Measure profit, return on investment and the annualised (CAGR) return.
Discount Calculator
Find the final price and how much you save after a percentage discount.
Burn Rate Calculator
Work out how fast a startup is spending cash each month and how many months of runway remain.
Break-Even Calculator
Find the units and revenue you need to sell to cover all your costs.
Explore every calculator
From investments to loans and taxes — find the right tool in seconds.
Browse calculators