Business

Margin Calculator

Calculate gross profit margin, markup percentage, and gross profit from revenue and cost. Free, fast & accurate.

Did this calculator help you?

What is Margin Calculator?

A margin calculator helps you determine the profit margin on your products or services, which is one of the most important metrics for any business. Profit margin shows what percentage of your revenue remains as profit after accounting for the cost of goods sold. Understanding your margins is essential for pricing decisions, profitability analysis, and business planning. There are two key margin types: gross margin (revenue minus cost of goods sold) and net margin (revenue minus all expenses). Gross margin tells you how efficiently you produce and sell your products, while net margin reveals your overall profitability. Many business owners confuse margin with markup — while related, they're calculated differently and produce different percentages. This tool computes gross profit, gross margin, and markup from your revenue and cost, so you always know the real numbers behind a price.

When to Use This Calculator

  • Setting the price for a new product or service
  • Checking whether a supplier quote or wholesale cost still leaves you a healthy margin
  • Reviewing the profitability of different product lines before adjusting your catalog
  • Planning discounts and promotions without giving away profit
  • Comparing your margins against industry benchmarks or last year's performance
  • Preparing a price list or renegotiating prices with customers and partners

Steps:

  1. Enter the revenue — your selling price per unit.
  2. Enter the cost — what you pay per unit.
  3. View the gross profit in your currency.
  4. Read the gross margin percentage and markup percentage.
  5. Use the results to adjust your pricing or supplier costs.

Formula

Gross Profit = Revenue - Cost Gross Margin = (Gross Profit / Revenue) × 100 Markup = (Gross Profit / Cost) × 100 Example: cost $45, sell for $75 Gross Profit = $75 - $45 = $30 Margin = ($30 / $75) × 100 = 40% Markup = ($30 / $45) × 100 = 66.67%

Use Cases

  • Setting profitable prices for products and services
  • Analyzing the profitability of different product lines
  • Comparing business performance across industries
  • Planning pricing strategies for new products
  • Evaluating wholesale and supplier cost changes
  • Modeling the impact of discounts and promotions on profit

Key Benefits

  • Instantly see gross profit, margin, and markup from just two numbers
  • Price products confidently knowing the exact profit each sale leaves behind
  • Spot low-margin items that eat time and money without earning their keep
  • Plan discounts and promotions with the real profit impact in view
  • Understand the margin-vs-markup difference with concrete examples
  • Free, private, and works offline on any device — no sign-up required

Pro Tips

  • Remember the conversion: a 30% margin needs a 42.9% markup, while a 30% markup is only a 23.1% margin
  • Use margin for profitability reporting and markup for quick pricing from cost
  • Re-run the numbers after every supplier price change or before big discount campaigns
  • Track gross and net margin separately — gross shows pricing, net shows overall health
  • Benchmark your margin against your industry rather than an arbitrary target
  • When costs rise, raise prices in step — leaving prices flat quietly shrinks your margin

Common Mistakes to Avoid

  • Confusing margin (profit over price) with markup (profit over cost)
  • Pricing from cost with a markup and then quoting that percentage as a margin
  • Applying one flat margin across all products regardless of category and volume
  • Ignoring supplier cost changes until margins have already eroded
  • Offering discounts without checking the new margin stays profitable

Key Terms Explained

Margin: Profit divided by revenue, expressed as a percentage of the selling price
Markup: Profit divided by cost, expressed as a percentage added on top of cost
Gross Profit: Revenue minus the cost of goods sold
Revenue: The selling price you charge per unit
Cost: What you pay to acquire or produce each unit
Net Margin: Profit after all expenses, divided by total revenue

Related Concepts

  • Profit Calculator — total profit, expenses, and bottom line for your business
  • Break-even Calculator — how many units you must sell to cover fixed costs
  • ROI Calculator — measure return on your marketing and investment spend
  • SaaS Pricing Calculator — build a profitable subscription pricing model
  • Discount Calculator — see the final price and savings before you commit to a sale

Example

You buy a product for $45 and sell it for $75. Gross profit = $75 - $45 = $30. Margin = $30 / $75 × 100 = 40%. Markup = $30 / $45 × 100 = 66.67%. For a second line that costs $90 and sells for $120: profit = $30, margin = $30 / $120 × 100 = 25%, markup = $30 / $90 × 100 = 33.33%. The same absolute profit produces different percentages depending on whether you compare it to price or cost.

Interpreting Your Results

Enter your revenue (selling price per unit) and your cost (what you pay per unit). The calculator subtracts cost from revenue to get gross profit, then divides it by revenue to get gross margin and by cost to get markup, both as percentages. A margin of 40% means you keep $0.40 of every $1.00 of revenue before other expenses; the equivalent markup is 66.67% because the $30 profit is compared to the $45 cost. Use the margin when analyzing profitability and the markup when working from cost. If your margin looks thin, renegotiate cost, raise price, or review the product line — and remember that margins below your industry's typical range usually signal a pricing problem rather than a fixed destiny.

Frequently Asked Questions

What's the difference between margin and markup?
Margin is profit divided by revenue (the selling price), while markup is profit divided by cost. For the same sale they give different percentages: a $30 profit on a $75 sale with $45 cost is a 40% margin but a 66.67% markup. Margin shows how much of each sale stays as profit; markup shows how much you added on top of cost.
What is a good profit margin?
It depends on your industry. Average net margins are roughly 7-10% across all industries, but retail ranges from about 2-5% on groceries to 50-65% on jewelry, and software often runs much higher. Compare yourself to your own industry rather than a single universal number.
How can I improve my profit margin?
Common levers are raising prices, renegotiating supplier costs, cutting waste and overhead, focusing on higher-margin products, and increasing volume to spread fixed costs. Small margin gains compound — a 5% improvement in margin can roughly double profits over several years.
How is gross margin calculated?
Gross margin = (revenue - cost) / revenue × 100. For example, if you sell at $75 and the product costs $45, gross profit is $30 and margin is ($30 / $75) × 100 = 40%. This calculator uses exactly that formula.
How do I convert markup to margin and back?
Margin = markup / (100 + markup) × 100. Markup = margin / (100 - margin) × 100. A 66.67% markup equals a 40% margin; a 50% margin equals a 100% markup. Use these when a supplier quotes a markup but you track margins.
What's the difference between gross margin and net margin?
Gross margin subtracts only the cost of goods sold, while net margin subtracts all expenses — operating costs, salaries, rent, marketing, interest, and taxes. Gross margin measures production and pricing efficiency; net margin measures overall business profitability.
Can a business have a high gross margin but still lose money?
Yes. Gross margin ignores operating expenses, so a company with a 50% gross margin can still post a net loss if rent, payroll, and other overhead are high. That's why you should review both gross and net margins together.
What inputs does this calculator use?
Two: revenue (your selling price per unit) and cost (what you pay per unit). It returns the gross profit, the gross margin percentage, and the markup percentage. It's unit-based, so you can analyze one unit or apply the same inputs to bulk totals.
Should I price with margin or markup?
Both are common. Markup is convenient when you start from cost — you decide a percentage to add. Margin is better for profitability analysis because it directly shows the share of each sale you keep. Most businesses use a target markup for pricing and track margin for reporting.
Do I use the same margin for every product?
Not usually. Commodities and groceries run thin margins on high volume, while differentiated or luxury products carry higher margins. Consider demand, competition, and your sales volume for each product line rather than applying one flat margin everywhere.
Why does margin matter for small businesses?
Margin shows how much of every sale is actually profit before overhead. Knowing your per-unit margin helps you set discounts safely, decide which products to promote or drop, and spot problems early — a small drop in margin can quickly erase profit when volumes are fixed.

Discover More Tools

Fresh picks from across our tool library.