Margin Calculator — Gross Margin, Net Margin & Markup Calculator Free

Calculate gross profit margin, markup percentage, and revenue needed. Includes break-even calculator and industry margin benchmarks. Free, secure, and runs entirely in your browser.

Updated:

Loading tool…

How to Calculate Margin, Markup & Profit — Free Online Calculator

To calculate gross margin: select the Gross Margin tab, enter your total Revenue and your Cost of Goods Sold (COGS) into the input fields, and the calculator instantly shows your gross margin percentage and gross profit in dollars. The formula is: Gross Margin = (Revenue − COGS) ÷ Revenue × 100. For example, if your revenue is $500 and COGS is $300, your gross margin is 40% and your gross profit is $200.

To calculate net margin: switch to the Net Margin tab, enter your total Revenue and your Net Income (profit after all expenses, taxes, and interest). The calculator shows your net profit margin percentage using the formula: Net Margin = Net Income ÷ Revenue × 100. This metric tells you what percentage of every dollar in revenue actually becomes profit.

To calculate markup: switch to the Markup tab, enter your Cost and Selling Price. The calculator shows your markup percentage using the formula: Markup = (Selling Price − Cost) ÷ Cost × 100. Markup and margin are related but different — a 50% markup means you sell an item for 1.5× its cost, while a 50% margin means half your revenue is profit. Understanding the difference is critical for pricing strategy. If you need to calculate percentage changes for other scenarios, try the Percentage Calculator.

Why Use This Free Margin Calculator?

  • Three calculations in one tool — gross margin, net margin, and markup — no need to switch between sites
  • Shows both the margin percentage and the dollar profit amount for gross margin calculations
  • Displays the exact formula used so you understand the math, not just the answer
  • 100% browser-based — your financial data never leaves your device or touches any server
  • Instant results with no page reload — output appears as you type
  • Completely free with no rate limits, no account, and no installation required
  • Helps distinguish between margin and markup — two metrics often confused in business

Frequently Asked Questions

What is the difference between margin and markup?

Margin and markup both measure profitability but use different denominators. Margin is profit as a percentage of the selling price (revenue): Margin = (Price − Cost) ÷ Price × 100. Markup is profit as a percentage of the cost: Markup = (Price − Cost) ÷ Cost × 100. A product that costs $60 and sells for $100 has a 40% margin but a 66.7% markup. Margin is always lower than markup for the same transaction. Most financial analysts and investors use margin, while retailers and wholesalers often think in terms of markup when setting prices.

Source: Investopedia — Profit Margin vs. Markup

What is a good gross margin?

A 'good' gross margin varies widely by industry. Software and technology companies typically achieve gross margins of 60–80% because their cost of goods sold is low after initial development. Retail businesses usually operate at 20–50% gross margins, while grocery stores and restaurants often see margins of 3–9%. Manufacturing companies typically fall in the 25–35% range. The key is to compare your gross margin to industry benchmarks and your own historical performance rather than relying on a universal target. According to NYU Stern's analysis, the average gross margin across all industries is approximately 36%.

Source: NYU Stern — Margins by Sector

How do I convert between margin and markup?

To convert markup to margin: Margin = Markup ÷ (1 + Markup). To convert margin to markup: Markup = Margin ÷ (1 − Margin). For example, a 50% markup converts to a 33.3% margin (0.50 ÷ 1.50 = 0.333). A 40% margin converts to a 66.7% markup (0.40 ÷ 0.60 = 0.667). These conversion formulas are essential for pricing decisions — if your business targets a 30% margin, you need a 42.9% markup on cost.

What is net profit margin and why does it matter?

Net profit margin measures how much of every dollar of revenue a company keeps as profit after paying all expenses — including cost of goods sold, operating expenses, interest, and taxes. The formula is: Net Margin = Net Income ÷ Revenue × 100. A 10% net margin means the company earns $0.10 in profit for every $1 in revenue. Net margin is widely regarded as one of the most important indicators of a company's overall financial health because it reflects the true bottom-line profitability after all costs are accounted for.

Source: Investopedia — Net Profit Margin

By UtilDaily · Updated \u2014 free, privacy-first browser tools. No sign-up, no data collection.