Calculators PlanetCalculators Planet
HomeFinancialMathHealthOtherBlogAboutContact
Calculators PlanetCalculators Planet

Fast, accurate, and user-friendly online calculators for all your needs.

Financial

  • Mortgage Calculator
  • Amortization Calculator
  • Mortgage Payoff Calculator
  • House Affordability Calculator
  • Rent Calculator

Math

  • Decimal to Fraction Calculator
  • Significant Figures Calculator
  • Percentage Calculator
  • Fraction Calculator
  • Ratio Calculator

Health

  • BMI Calculator
  • Ideal Weight Calculator
  • Body Fat Calculator
  • Calorie Calculator
  • Macro Calculator

Other

  • Age Calculator
  • Date Calculator
  • Time Calculator
  • Hours Calculator
  • Time Card Calculator

2026 Calculators Planet. All rights reserved.

BlogAboutContactPrivacy PolicyCookie PolicyTerms of ServiceDisclaimer
Calculators PlanetCalculators Planet
HomeFinancialMathHealthOtherBlogAboutContact
HomeFinancialMargin Calculator

Margin Calculator

Calculate profit margin and markup from cost and revenue, find the selling price needed to achieve a target margin, or determine the maximum cost that still meets your margin goal.

Share:
Margin Calculator

Profit Margin

40.00%

Gross Profit

$40.00

Markup

66.67%

Full Breakdown
Revenue$100.00
Cost of Goods Sold$60.00
Gross Profit$40.00
Profit Margin40.00%
Markup66.67%

Quick Reference

Margin = Gross Profit / Revenue × 100

Markup = Gross Profit / Cost × 100

Margin → Markup: Markup = Margin / (1 − Margin)

Introduction

Lisa runs a small online boutique selling handmade jewelry. She buys materials for $22 per necklace and sells each piece for $45. She thinks she is making a great profit because $45 minus $22 is $23, which feels like a lot. But when her accountant asks what her profit margin is, Lisa draws a blank. Is it 50%? Is it 104%? She is not sure whether to divide by the cost or the selling price, and she is not alone. This confusion costs businesses real money every day.

Profit margin is one of the most important metrics in business. It tells you what percentage of revenue remains as profit after covering the cost of goods sold. A business with healthy margins can cover operating expenses, reinvest in growth, and weather downturns. A business with thin margins has little room for error. According to Vena Solutions, the average profit margin for small businesses ranges from 7% to 10%, and the average annual revenue across all US small businesses is $1,221,884.

Understanding your margin is essential whether you are setting prices for a product, evaluating a supplier quote, or assessing the profitability of a service offering. The Small Business Administration provides resources on financial management that complement the calculations you can perform here.

Inputs Required

  • Calculate Mode: Choose from margin and markup analysis, selling price finder, or max cost finder
  • Cost of Goods Sold: The direct cost of producing or purchasing the item being sold
  • Revenue / Selling Price: The price at which the item is sold to customers
  • Target Margin: The desired profit margin percentage (used when working backward from a goal)

Outputs Provided

  • Profit Margin: Gross profit as a percentage of revenue
  • Gross Profit: Revenue minus cost in dollar terms
  • Markup: Gross profit as a percentage of cost
  • Full Breakdown: Revenue, cost, gross profit, margin, and markup in a single summary table

How the Calculation Works

Margin and markup are two different ways of expressing the relationship between cost, revenue, and profit. Many people confuse them, but they use different denominators.

Gross Profit = Revenue - Cost

Margin = Gross Profit / Revenue x 100

Markup = Gross Profit / Cost x 100

To find the selling price from a cost and a target margin, rearrange the margin formula:

Selling Price = Cost / (1 - Target Margin / 100)

This is a critical formula that many business owners get wrong. A 40% margin does not mean adding 40% to the cost. A product that costs $60 with a target 40% margin must be priced at $60 / (1 - 0.40) = $100, not $84. The difference between $100 and $84 is $16 per unit, which compounds quickly across hundreds of sales.

How to Use the Calculator

  1. Select the calculation mode that matches your task
  2. If analyzing existing pricing, enter your cost and selling price to see current margin and markup
  3. If setting a price, enter your cost and target margin to see the required selling price
  4. If evaluating a supplier, enter your revenue target and margin goal to see the maximum acceptable cost
  5. Review the full breakdown card for the complete picture

Example Calculations

Example 1: Lisa's Jewelry Boutique

Lisa buys necklace materials for $22 and sells each necklace for $45. Gross Profit = $45 - $22 = $23. Margin = $23 / $45 = 51.1%. Markup = $23 / $22 = 104.5%. Her margin of 51% is well above the small business average of 7% to 10%, which is typical for handmade goods with low material costs and high perceived value. Now Lisa wants to achieve a 60% margin instead. Using the selling price formula: $22 / (1 - 0.60) = $55. She needs to raise the price to $55, not just add 60% to $22 (which would be $35.20 and yield only a 37.5% margin).

Example 2: Wholesale Distribution Business

A wholesale distributor buys electronics components for $340 per unit and sells them to retailers for $425. Gross Profit = $425 - $340 = $85. Margin = $85 / $425 = 20%. Markup = $85 / $340 = 25%. A 20% gross margin is typical for wholesale distribution, where volume compensates for thinner margins. If the distributor wants to maintain a 22% margin while a supplier raises the component cost, the maximum acceptable cost at the $425 selling price is $425 x (1 - 0.22) = $331.50. Any cost above $331.50 erodes the target margin.

Real-World Scenarios

E-Commerce Product Pricing with Platform Fees

An Amazon seller sources a product for $18 including shipping from the supplier. Amazon referral fees and FBA costs run roughly $8 per unit, bringing total cost to $26. To achieve a 35% margin, the seller needs a price of $26 / (1 - 0.35) = $40. Pricing below $40 erodes profitability even if the product appears to sell well. Many new sellers price at $32 thinking they have a 44% markup and are profitable, but the actual margin is only 18.75%, which barely covers advertising and returns.

Service Business Rate Setting

A marketing consultant in Denver has a direct cost of $50 per hour (salary, overhead, software subscriptions). She wants a 60% gross margin on her services. The required billing rate is $50 / (1 - 0.60) = $125 per hour. This covers direct costs and leaves $75 per hour for administrative expenses, business development, and profit. If she prices at $100 per hour instead, her margin drops to 50%, and after paying for office space and health insurance, her net margin may fall below 15%.

Evaluating a Supplier Quote Against Margin Targets

A business with a standard selling price of $200 receives a supplier quote of $140. The margin calculator shows this yields a 30% margin ($60 profit on $200 revenue). If the company's minimum margin requirement is 35%, the maximum acceptable cost is $200 x (1 - 0.35) = $130. The quote is $10 too high. The buyer can either negotiate the supplier down to $130 or raise the selling price to $140 / (1 - 0.35) = $215.38 to maintain the 35% margin target.

Why This Calculation Matters

Pricing decisions based on a misunderstood margin formula are one of the most common causes of business failure. A business that prices by adding a percentage to cost rather than working backward from a margin target will consistently underprice and erode profitability over time. Using this calculator to model pricing scenarios ensures every product or service is priced to meet the business's financial requirements. For broader investment analysis, see our ROI Calculator or our Markup Calculator.

Common Mistakes to Avoid

  • Confusing margin with markup: A 40% markup means adding 40% to cost. A 40% margin means 40% of revenue is profit. These are different numbers from the same cost and revenue pair. A 50% markup yields only a 33.3% margin
  • Calculating margin on cost instead of revenue: Margin is always expressed as a percentage of revenue, not cost. Using cost as the denominator produces the markup figure, not the margin
  • Ignoring indirect costs: This calculator shows gross margin, which only accounts for direct cost of goods sold. Wages, rent, marketing, and other overheads must also be covered before arriving at net profit. A 40% gross margin can still result in a net loss if operating expenses consume more than 40% of revenue
  • Using average cost instead of marginal cost: If your costs change at higher volumes due to bulk discounts or economies of scale, recalculate margin at each volume tier to price accurately
  • Not benchmarking against industry averages: A 10% gross margin might be excellent for a grocery store but terrible for a software company. Research your industry's typical margins to set realistic targets

Limitations of This Calculator

This calculator computes gross margin only, which is revenue minus cost of goods sold. It does not account for operating expenses, taxes, interest, depreciation, or amortization. Net margin, which subtracts all of those items, is always lower than gross margin. The calculator also assumes a single product or service. If you sell multiple products with different cost structures, you need to calculate margin for each product individually and then compute a blended margin for your overall business. For businesses with complex cost structures or multi-tier pricing, consult a CPA or use accounting software like QuickBooks or Xero for comprehensive margin analysis.

Frequently Asked Questions

What is a good profit margin for a business?
It depends heavily on the industry. According to Vena Solutions, the average profit margin for small businesses ranges from 7% to 10%. Grocery retail typically operates on margins of 1% to 3% net, while software companies can achieve gross margins of 70% to 90%. Service businesses often target 60% to 80% gross margin. As a general benchmark, a gross margin above 50% is considered healthy for most product businesses. The key is whether the margin is sufficient to cover all operating costs after gross profit is calculated. Research your specific industry's average margins through the SBA or industry trade associations to set realistic targets.
What is the difference between gross margin and net margin?
Gross margin is revenue minus the direct cost of goods sold, expressed as a percentage of revenue. It measures how efficiently a business produces or sources its products. Net margin subtracts all expenses including operating costs, salaries, rent, taxes, and interest from revenue. Gross margin tells you if the product is profitable to sell. Net margin tells you if the overall business is profitable. A business can have a 50% gross margin and still lose money if operating expenses consume more than 50% of revenue. This calculator shows gross margin only.
How do I convert a markup percentage to a margin percentage?
Use this formula: Margin = Markup / (1 + Markup). For example, a 75% markup converts to a margin of 0.75 / 1.75 = 42.86%. In reverse, to convert a margin to a markup: Markup = Margin / (1 - Margin). A 40% margin equals a markup of 0.40 / 0.60 = 66.67%. These formulas are also shown in the Quick Reference card inside the calculator. The key insight is that markup is always a larger number than margin for the same cost and revenue pair, which is why pricing based on markup leads to underpricing.
Why can a margin never equal or exceed 100%?
Because margin is calculated as a percentage of revenue. If a product sold for $100 had a 100% margin, it would mean gross profit equals $100, which implies zero cost. A margin above 100% is mathematically impossible since cost cannot be negative. Markup, on the other hand, has no upper limit because it is calculated as a percentage of cost, which can be a very small number relative to the selling price.
Should I price based on markup or margin?
Most financial professionals and pricing strategists recommend pricing based on margin targets rather than markup. When a business sets a margin target, it directly controls what percentage of every revenue dollar is available to cover other expenses. Markup-based pricing can lead to underpricing because the margin implied by a given markup is always lower than the markup percentage itself. For example, a 50% markup yields only a 33.3% margin. A business that thinks it is making 50% on each sale is actually making 33.3%, which may not be enough to cover overhead.
How do platform fees affect my margin calculation?
Platform fees like Amazon referral fees, Shopify transaction fees, or payment processing charges should be included in your cost of goods sold when calculating margin. For example, if you buy a product for $18 and pay $8 in platform fees, your total cost is $26. A $40 selling price gives you a 35% margin, not a 55% margin. Many new e-commerce sellers forget to include platform fees and advertising costs in their margin calculations, leading to significantly lower actual profitability than expected.
What is the break-even margin for my business?
Your break-even margin is the gross margin percentage that exactly covers your operating expenses. If your monthly operating expenses are $15,000 and your monthly revenue is $50,000, your break-even gross margin is $15,000 / $50,000 = 30%. Any margin below 30% means you are losing money. Any margin above 30% generates net profit. Calculate your break-even margin periodically as your revenue and expenses change to ensure your pricing remains viable.

Related Calculators

Discount Calculator

Calculate final price and savings from a discount

VAT Calculator

Add or remove VAT from any price

ROI Calculator

Calculate return on investment

Embed This Calculator

Margin Calculator

Calculate
Reset
Calculators PlanetCalculators Planet

Fast, accurate, and user-friendly online calculators for all your needs.

Financial

  • Mortgage Calculator
  • Amortization Calculator
  • Mortgage Payoff Calculator
  • House Affordability Calculator
  • Rent Calculator

Math

  • Decimal to Fraction Calculator
  • Significant Figures Calculator
  • Percentage Calculator
  • Fraction Calculator
  • Ratio Calculator

Health

  • BMI Calculator
  • Ideal Weight Calculator
  • Body Fat Calculator
  • Calorie Calculator
  • Macro Calculator

Other

  • Age Calculator
  • Date Calculator
  • Time Calculator
  • Hours Calculator
  • Time Card Calculator

2026 Calculators Planet. All rights reserved.

BlogAboutContactPrivacy PolicyCookie PolicyTerms of ServiceDisclaimer