MaximCalculator Fast, practical business tools
💼 Business & Finance
🌙Dark Mode

Gross Margin Calculator

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.

Instant gross profit + margin %
🎛️Price & cost what‑if sliders
💾Save scenarios locally (optional)
📤Share results to team / clients

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.

💱
🧾
🏭
🏷️
±50%
📦
±50%
📈
‑50% → +100%
Your gross margin results will appear here
Enter revenue and COGS, adjust sliders if you want, then tap “Calculate Gross Margin”.
Gross margin focuses on direct costs (COGS). It does not include operating expenses, taxes, or interest.
Margin meter: 0% = no gross profit · 50% = strong · 80%+ = exceptional (industry varies).
LowHealthyExcellent

Educational use only. This calculator provides general business math. Verify numbers with your accounting system before making high‑stakes decisions.

📚 Formula + meaning

Gross margin explained (without accounting jargon)

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:

1) Gross profit

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).

2) Gross margin (percentage)

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.

Why this calculator includes sliders

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.

Important note

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.

🧮 Worked examples

Examples you can copy

Example A: Simple product business

You sell $25,000 in products this month. Your COGS is $14,000 (inventory + packaging).

  • Gross profit: $25,000 − $14,000 = $11,000
  • Gross margin: $11,000 ÷ $25,000 = 0.44 → 44%

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.

Example B: Discount impact (viral “ouch” moment)

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.

  • Gross profit: $22,500 − $14,000 = $8,500
  • Gross margin: $8,500 ÷ $22,500 ≈ 37.8%

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.

Example C: Supplier negotiation

Instead of discounting, you negotiate a 5% reduction in COGS. Move the COGS slider to −5%. New COGS = $14,000 × 0.95 = $13,300.

  • Gross profit: $25,000 − $13,300 = $11,700
  • Gross margin: $11,700 ÷ $25,000 = 46.8%

A small cost reduction improved your margin and added $700 gross profit — without changing customer pricing.

Example D: Volume growth

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.

🧠 How to use it

How this gross margin calculator works (step‑by‑step)

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.”

Step 1: Choose a period

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.

Step 2: Enter revenue and COGS

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.

Step 3: Move sliders (optional)
  • Price change adjusts revenue. A +5% slider increases revenue by 5% assuming demand stays the same.
  • COGS change adjusts COGS. A −3% slider reduces costs by 3%.
  • Volume change scales both revenue and COGS together to represent selling more or fewer units.

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.

Step 4: Interpret the result

The calculator gives you:

  • Gross profit (dollars) — what you have left after direct costs.
  • Gross margin (percent) — the efficiency of your core economics.
  • Margin meter — a quick visual reference (not a universal “grade”).
  • Action ideas — suggestions based on your margin range and biggest lever.
A practical weekly routine
  • Run the calculator with last week’s numbers.
  • Save the scenario result.
  • Try one lever (price, cost, bundle, supplier).
  • Recheck next week and watch trends.
❓ FAQ

Frequently Asked Questions

  • What counts as COGS?

    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).

  • Is gross margin the same as profit margin?

    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.

  • What is a “good” gross margin?

    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.

  • Why does a discount hurt more than it seems?

    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.

  • Should I include shipping in COGS?

    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.

  • Why add a volume slider?

    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.

  • Can gross margin be above 100%?

    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.

  • What if revenue is zero?

    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.

🛡️ Notes

Common mistakes to avoid

  • Mixing time periods: Revenue and COGS must cover the same dates.
  • Including overhead in COGS: Keep COGS “direct” or your margin won’t be comparable over time.
  • Ignoring returns and discounts: Use net revenue (after discounts/returns) for real accuracy.
  • Chasing margin without strategy: Sometimes a lower margin with high volume is a valid model — but it must be intentional.

MaximCalculator builds fast, human‑friendly tools. Always double‑check important decisions with qualified professionals.