Calculate your gross margin
Tip: If you sell multiple products, start with your total revenue and total COGS for the same period (week, month, quarter). Then experiment with price and cost levers.
Enter your revenue and cost of goods sold (COGS) to calculate gross profit and gross margin %. Then use the what‑if sliders to see how small price or cost changes can swing margin. Great for founders, ecommerce sellers, and anyone pricing products.
Tip: If you sell multiple products, start with your total revenue and total COGS for the same period (week, month, quarter). Then experiment with price and cost levers.
Gross margin is one of those metrics that sounds like “finance people stuff,” but it’s actually a simple question: After you pay the direct costs to make or deliver your product, how much is left? That “leftover” money is what pays for everything else — your software tools, rent, ads, your time, your employees, customer support, and eventually profit.
Here are the two core pieces:
Gross Profit = Revenue − COGS
Revenue is your sales for a period. COGS (Cost of Goods Sold) is the direct cost tied to delivering those sales. For an ecommerce store, COGS often includes product purchase cost, packaging, and sometimes inbound shipping. For a manufacturer, it can include raw materials and direct labor. For a service business, it might be the subcontractor cost or the direct labor hours required to deliver the service (but not admin salaries).
Gross Margin % = (Gross Profit ÷ Revenue) × 100
The percent matters because it makes businesses comparable even when they’re different sizes. A 35% margin business generating $1,000,000 in revenue has $350,000 of gross profit to fund the rest of the company. A 10% margin business at the same revenue has only $100,000 of gross profit — which can make growth much harder unless operating costs are extremely low or volume is massive.
Most calculators stop at the formula. But decisions happen in the “what‑if” zone: “What if I raise prices 5%?” “What if my supplier increases costs?” “What if I can negotiate a 3% discount?” The sliders in this tool let you model those changes instantly. It’s a quick way to build intuition, and it’s often more valuable than a perfectly precise forecast — because it highlights which levers matter most.
Gross margin is not net profit. A business can have a healthy gross margin and still lose money if operating expenses (marketing, salaries, rent, software) are too high. Gross margin tells you whether the core product economics can support the rest of the business.
You sell $25,000 in products this month. Your COGS is $14,000 (inventory + packaging).
A 44% gross margin gives you room for marketing, returns, support, and overhead. Whether it’s “good” depends on your industry, but many ecommerce businesses aim for a strong enough margin to cover ad costs and still leave something for operating profit.
Using the example above, you consider a 10% discount. Costs don’t drop (you still pay suppliers). If you move the price slider to −10%, your revenue becomes $22,500 while COGS stays $14,000.
Notice what happened: revenue fell 10%, but gross profit fell from $11,000 to $8,500 — that’s a 22.7% drop in gross profit. This is why discounting is powerful but dangerous.
Instead of discounting, you negotiate a 5% reduction in COGS. Move the COGS slider to −5%. New COGS = $14,000 × 0.95 = $13,300.
A small cost reduction improved your margin and added $700 gross profit — without changing customer pricing.
If you sell 20% more units at the same price, revenue and COGS can both rise. The volume slider models that: Revenue and COGS scale together (because more units usually means more direct costs).
In that case, gross margin % often stays similar, but gross profit dollars increase — which can help fund growth, as long as overhead doesn’t rise faster than gross profit.
This tool computes both your baseline margin and a scenario margin. The baseline uses the revenue and COGS you enter. The scenario applies the sliders to simulate changes. You can think of it as a “margin sandbox.”
Use any timeframe: a week, month, or quarter — just keep revenue and COGS aligned to the same period. Mixing periods (e.g., monthly revenue with weekly COGS) will produce nonsense results.
Revenue should reflect the total you actually charge customers (before taxes that you pass through, depending on your accounting). COGS should include only direct costs tied to producing the goods or delivering the service.
Real life is messier (price changes can affect demand). But these sliders are still incredibly useful for planning because they show the “first‑order” effect of each lever. Most teams do this in spreadsheets; this tool just makes it faster.
The calculator gives you:
COGS usually includes direct costs tied to delivering what you sell: inventory/product cost, raw materials, direct production labor, and sometimes packaging and fulfillment costs. It generally does not include marketing, office rent, admin payroll, or software subscriptions (those are operating expenses).
No. Gross margin only considers direct costs (COGS). Profit margin often refers to net profit margin, which includes operating expenses, taxes, interest, and other costs. A business can have strong gross margin but weak net profit if overhead is too high.
It depends heavily on industry. Grocery and commodity businesses often have low margins, while software and digital products can have very high gross margins. Use the tool to compare against your own past performance and your industry benchmarks. The trend over time is often more meaningful than a single snapshot.
Because COGS often stays nearly the same when you discount. That means the discount comes almost entirely out of gross profit. If you need discounts to sell, consider bundling, reducing costs, raising perceived value, or targeting higher‑intent customers instead.
If shipping is a direct cost required to deliver the product (and you treat it as part of fulfillment), many businesses include it. The key is consistency: include it the same way every period so trends stay reliable.
Because businesses often obsess over margin % and ignore profit dollars. Volume can increase gross profit even if margin stays flat. The slider helps you see whether you’re trying to “fix” margin when you actually need more sales — or vice versa.
In normal accounting, no — but data entry errors or negative costs can create weird results. This calculator clamps the meter to 0–100%, but still shows the computed values so you can spot mistakes.
Margin % is undefined when revenue is zero. The calculator will ask you to enter a positive revenue number to compute margin. If you’re pre‑revenue, focus on estimating unit economics: expected price per unit and expected direct cost per unit.
MaximCalculator builds fast, human‑friendly tools. Always double‑check important decisions with qualified professionals.