Margin Calculator

Calculate profit margins, markup percentages, cost, and revenue. Supports both gross margin (COGS-based) and net margin (including expenses).

Total or per‑unit selling price.
Direct cost to produce or purchase the product.
Fixed & variable expenses (rent, marketing, salaries).
Enter target margin to calculate required selling price.
?️ Retail: Price $120, COGS $75, Expenses $15
? SaaS: Monthly fee $49, COGS $12 (hosting/support), Expenses $10
? Manufacturing: Price $500, COGS $320, Expenses $80
? Target 40% margin – find price (COGS=$60)
Privacy assured: All calculations are performed locally – no data leaves your device.

Understanding Margin vs. Markup

Gross margin (or gross profit margin) measures the percentage of revenue that exceeds the cost of goods sold (COGS). It's a key indicator of production and pricing efficiency. Markup, on the other hand, is the percentage added to COGS to arrive at the selling price. The two are often confused but serve different purposes: margin expresses profit relative to sales, while markup expresses profit relative to cost.

Gross Margin (%) = (Revenue – COGS) / Revenue × 100

Markup (%) = (Revenue – COGS) / COGS × 100

Net Margin (%) = (Revenue – COGS – Operating Expenses) / Revenue × 100

This calculator also allows you to solve for the required selling price given a target margin: Price = COGS / (1 – Target Margin). This is invaluable for setting prices that achieve desired profitability.

Real‑world Applications

  • Retail & E‑commerce: Determine optimal pricing to achieve 40‑50% gross margins typical for physical goods.
  • Service businesses: Calculate hourly rates that cover labor and overhead while delivering target net margin.
  • Manufacturing: Analyze product‑line profitability and adjust COGS via sourcing or process improvements.
  • Restaurant industry: Maintain food cost percentage (COGS) around 30% to achieve healthy margins.
Case Study: E‑commerce scaling

A small business sells handmade furniture. Selling price: $450, COGS: $210, monthly operating expenses: $3,500. With 200 units sold monthly, gross margin = (450-210)/450 = 53.3%. Net margin after expenses = (200*450 - 200*210 - 3500)/(200*450) = 49.1%. By using this calculator, the owner identified that a 5% discount would drop net margin to 44%, helping decide against aggressive discounting.

Industry Benchmarks (U.S. Data 2025)

Industry Average Gross Margin Average Net Margin
Retail (general) 25% – 35% 3% – 5%
Software (SaaS) 75% – 85% 20% – 30%
Manufacturing 20% – 30% 5% – 10%
Restaurants 60% – 70% (on food) 3% – 6%
Construction 15% – 25% 2% – 6%

How to Improve Your Margins

  • Increase prices: Even a 1% price increase can boost net profit by 8‑10% (Pricing Power).
  • Reduce COGS: Negotiate with suppliers, improve production efficiency, or switch to lower‑cost materials.
  • Control operating expenses: Automate processes, reduce waste, optimize ad spend.
  • Upsell / cross‑sell: Increase average order value without proportional cost increase.

Trusted methodology: This calculator follows standard accounting principles (GAAP) for margin calculation. Formulas verified against financial textbooks (Brigham & Houston, “Fundamentals of Financial Management”). Reviewed by getzenquery Tech team, April 2026.

Frequently Asked Questions

Margin is profit relative to selling price; markup is profit relative to cost. Example: $100 item costs $60. Margin = 40%, Markup = 66.7%. This calculator shows both.

Price = COGS / (1 – target margin). For a 40% margin and COGS $60, price = 60 / (1 – 0.40) = $100. Use the "target margin" field in our calculator.

It varies by industry. Software often sees 80%+, retail 30‑50%, grocery 20‑30%. Compare within your sector.

Gross margin cannot exceed 100% because profit cannot exceed revenue. Markup can exceed 100% (e.g., $10 cost sold for $30 → markup 200%).
References: Investopedia – Profit Margin | SBA Profitability Guide | NYU Stern Margin Report 2025