Calculate gross margin in rupiah and percent, convert to markup, reverse-solve target margins, compare two products, and test COGS sensitivity — all running in your browser.
Enter revenue and COGS (cost of goods sold) to see rupiah margin, percent margin, and markup.
Results are educational, for calculation illustration only — not financial, accounting, or tax advice.
Start from your desired target margin and work backwards to the revenue or COGS needed.
Compare the margins of two products, two branches, or two periods at once.
See how margin changes if COGS rises or falls. The 0% row is your base case.
| COGS change | COGS | Margin (Rp) | Margin (%) |
|---|
Gross margin is the difference between revenue and COGS (cost of goods sold). It comes in two forms: rupiah margin (nominal difference) and percent margin (difference divided by revenue).
Example: revenue of Rp1,000,000 and COGS of Rp600,000 → gross margin of Rp400,000, i.e. 40% of revenue.
In rupiah: Margin = Revenue − COGS
In percent: Margin% = (Revenue − COGS) ÷ Revenue × 100
Example: (Rp1,000,000 − Rp600,000) ÷ Rp1,000,000 × 100 = 40%.
Margin is computed on revenue: Margin = Profit ÷ Revenue. Markup is computed on COGS: Markup = Profit ÷ COGS.
Converting between them: Markup = Margin ÷ (1 − Margin) and Margin = Markup ÷ (1 + Markup).
Example: 40% margin → markup = 40% ÷ 60% = 66.6667% (Rp400,000 ÷ Rp600,000). Both describe the same profit, only the divisor differs.
Gross margin only subtracts COGS from revenue. Net margin subtracts all costs: operating expenses, salaries, interest, and taxes.
That is why net margin cannot exceed gross margin as long as the other costs are not negative. Gross margin suits production efficiency analysis and pricing; net margin shows overall business profitability.
Gross margin measures sales profitability (gross profit divided by revenue). GMROI (Gross Margin Return on Investment) measures inventory productivity: GMROI = Gross margin ÷ Average inventory value.
Both use the same gross margin figure but answer different questions: margin answers “what percent of revenue becomes profit?”, GMROI answers “how many rupiah of profit per rupiah of stock?”. For retail stock analysis, use the GMROI calculator.
Negative gross margin means COGS exceeds revenue — every unit sold loses the difference.
Example: revenue of Rp1,000,000 and COGS of Rp1,200,000 → margin of −Rp200,000 (−20%). This figure is descriptive: it shows production costs exceeding income, not a verdict on business viability.
This calculator is for quick analysis: comparing margins across products or periods, testing target margins, and seeing sensitivity to COGS changes.
For official financial statements, tax calculations, or audits, use accounting software or an accountant — an educational calculator does not replace bookkeeping that follows applicable accounting standards.
Free tool by NRTechStudio
Explore similar finance tools and calculators. 100% free, accurate, and runs completely in your browser without sign-up.
2 taps, no typing needed — diagnostics are sent automatically.