Comprehensive Guide
Learn more in our Business & Tax Guide.
How it works
Gross margin answers the pricing question: of every revenue dollar, how much survives after the direct cost of the product. The engine subtracts cost of goods sold from revenue and divides by revenue. Margin and markup are the classic confusion: a 40% margin (COGS at 60% of price) is a 66.7% markup on cost — the same numbers, different baselines. Businesses live on margins: 10-20% is thin (retail, groceries), 40-60% is healthy (software, branded products), 80%+ signals pricing power or, sometimes, unrealistically low cost inputs. The margin is also the ceiling for everything that comes after COGS — marketing, salaries, overhead — which is why the number matters as much as revenue. Raise the margin by raising price, cutting direct costs, or changing the mix toward higher-margin products; the engine makes the trade visible immediately. Every field in this calculator exists for a reason. Enter Revenue, Cost of goods sold, Gross margin, Gross profit, Revenue, and the engine recomputes the results instantly — no signup, no email, and nothing is sent to a server, because the math runs entirely in your browser. Change one input at a time to see which lever moves the result most; that sensitivity, not any single number, is usually the real insight. The worked example below the form uses realistic defaults so you can sanity-check the output before trusting it with your own figures, and the formula is published on the page so you can verify every step of the arithmetic yourself.Formula
Gross margin = (Revenue - COGS) / Revenue x 100 | Markup = (Price - Cost) / Cost x 100
Tips
- Know your margin before discounting: a 20% off sale needs roughly 25% more units to break even at a 50% margin.
- Compare margin by product line, not just company-wide — the mix hides underperformers.
- Raising price 5% on a 40%-margin product adds roughly 8% to profit per unit.
- Track margin trend quarterly: a quiet drift down is the first sign of cost inflation or price erosion.