Skip to content

Margin Calculator — Free Online Margin Tool

Calculate your profit margin, markup percentage, and profit amount from cost and selling price. Instantly see the difference between margin and markup with a clear visual breakdown to make smarter pricing decisions.

$
$

Margin vs Markup

Margin is the percentage of the selling price that is profit. Markup is the percentage of the cost price added as profit. A 50% markup produces only a 33.3% margin.

Margin Results

Profit Margin40.00%
Markup Percentage66.67%
Profit Amount$50.00
Revenue$125.00

Summary: Selling at $125.00 with a cost of $75.00 gives you a 40.00% profit margin (66.67% markup) and $50.00 profit per unit.

Cost vs Profit Breakdown

Cost: 60.0%Profit: 40.0%
Cost60.0%
Profit40.0%

How to Use the Margin Calculator

This margin calculator gives you instant insight into your pricing profitability by computing both margin and markup simultaneously. Whether you are setting prices for a new product, evaluating supplier quotes, or analyzing your current pricing strategy, follow these steps for accurate results.

  1. Enter your cost price. This is the total cost to produce or acquire one unit of the product. Include direct materials, direct labor, and any variable costs directly tied to the product. For a retailer, this is the wholesale purchase price. For a manufacturer, this includes raw materials plus direct production labor.
  2. Enter your selling price. This is the price your customer pays. If you use tiered pricing, enter the most common price point. The calculator will instantly show both your margin and markup percentages. For products sold with tax, enter the pre-tax price since sales tax is not your revenue.
  3. Review the margin percentage. This tells you what percentage of each dollar of revenue is profit. A 40% margin means you keep $0.40 from every dollar of sales. This is the metric used in financial statements and by investors to evaluate your business profitability.
  4. Review the markup percentage. This tells you how much you added to your cost. A 66.7% markup on a $60 item means you added $40 (66.7% of $60). Markup is more intuitive for daily pricing decisions because you apply it directly to your known cost.
  5. Analyze the pie chart. The visual breakdown shows the proportion of revenue that goes to cost versus profit. A healthy product has a clearly visible profit slice. If the cost slice dominates, consider whether you can reduce costs or raise prices.

Experiment by adjusting either input to find your optimal price point. If you have a target margin in mind, adjust the selling price until you reach it. If you have a competitive price constraint, adjust to see what margin that price delivers.

Understanding the Margin Formula

Profit margin and markup are two ways of expressing the same relationship between cost, revenue, and profit. Understanding both formulas is essential for pricing products correctly and communicating profitability to stakeholders.

Margin (%) = ((Selling Price − Cost) / Selling Price) × 100

Markup (%) = ((Selling Price − Cost) / Cost) × 100

Where each variable represents:

  • Selling Price = The price charged to the customer (revenue per unit)
  • Cost = The total direct cost to produce or purchase one unit
  • Margin = Profit as a percentage of the selling price
  • Markup = Profit as a percentage of the cost

Step-by-Step Calculation Example

A retailer purchases wireless earbuds for $45 and sells them for $80. Calculate both margin and markup:

  1. Calculate profit: $80 − $45 = $35
  2. Calculate margin: ($35 / $80) × 100 = 43.75%
  3. Calculate markup: ($35 / $45) × 100 = 77.78%
  4. Verify: A 77.78% markup on a $45 cost = $45 × 1.7778 = $80 (correct)

Notice the significant difference: 43.75% margin versus 77.78% markup for the exact same transaction. This is why confusing the two can lead to major pricing errors. If you target a "50% margin" but accidentally apply a 50% markup, you would sell the $45 item for $67.50 instead of $90, severely underpricing it.

Reverse Calculations

You can also solve for the unknown variable. To find the required selling price given cost and target margin: Selling Price = Cost / (1 − Margin / 100). For a $45 cost with a 40% target margin: $45 / (1 − 0.40) = $45 / 0.60 = $75.00. To find the maximum cost given selling price and target margin: Max Cost = Selling Price × (1 − Margin / 100). For a $100 selling price with a 35% margin: $100 × 0.65 = $65.00 maximum cost.

Practical Margin Examples

These real-world scenarios demonstrate how margin calculations apply across different business types and situations. Each example uses realistic numbers to help you understand margin dynamics in practice.

E-Commerce Product Pricing

Maria runs an online store selling handmade candles. Her materials cost $8 per candle (wax, wick, fragrance, container) and labor adds $4, for a total cost of $12 per unit. She sells each candle for $32. Her profit is $20 per candle, giving her a profit margin of 62.5% ($20 / $32) and a markup of 166.7% ($20 / $12). After accounting for shipping ($3), marketplace fees ($4.80), and packaging ($1.50), her effective margin drops to 33.4%. This shows why calculating margin on full landed cost, not just production cost, is critical for e-commerce businesses.

Wholesale to Retail Markup Chain

James manufactures kitchen gadgets for $15 each and sells wholesale to retailers at $28 (86.7% markup, 46.4% margin). The retailers then sell to consumers at $49.99 (78.5% markup on their $28 cost, 44.0% margin). The total supply chain markup from manufacturing cost to retail price is 233%, but no single participant earns that full margin. Understanding each link in the margin chain helps set competitive wholesale prices that leave room for retailer markup while maintaining your own profitability.

Service Business Margins

Lisa operates a graphic design agency. For a $5,000 branding project, her direct costs are $1,200 (freelance designer at $800 plus $400 in software licenses and stock assets). Her gross margin is 76% ($3,800 / $5,000). However, after allocating overhead proportionally (rent, utilities, her salary, marketing), the project contributes $2,100 in net profit, yielding a 42% net margin. Service businesses typically have higher gross margins than product businesses but similar net margins once overhead is included.

Restaurant Menu Pricing

Chef Daniel prices a signature pasta dish. Ingredient cost (food cost) is $4.50 per plate. Following the restaurant industry standard of targeting a 28-32% food cost ratio, he prices the dish at $15.50 ($4.50 / 0.29 = $15.52, rounded). This produces a food cost margin of 71% and a markup of 244%. While 71% seems extremely profitable, restaurants typically spend 30% on labor and 25-30% on overhead, leaving only 5-10% net margin. The high gross margin on food is necessary to cover the high operational costs unique to the restaurant industry.

Margin and Markup Reference Table

Cost Selling Price Profit Margin Markup
$10.00 $15.00 $5.00 33.3% 50.0%
$25.00 $50.00 $25.00 50.0% 100.0%
$40.00 $65.00 $25.00 38.5% 62.5%
$75.00 $125.00 $50.00 40.0% 66.7%
$150.00 $299.00 $149.00 49.8% 99.3%
$500.00 $1,200.00 $700.00 58.3% 140.0%

Margin Tips and Complete Business Pricing Guide

Setting the right profit margin is one of the most important decisions a business owner makes. Too high and you lose customers to competitors. Too low and you cannot cover expenses or invest in growth. These strategies help you find and maintain healthy margins.

Know Your Industry Benchmarks

Research typical margins in your industry before setting prices. According to data from NYU Stern School of Business and the U.S. Census Bureau, gross margins average 50% for software, 30-50% for retail, 60-70% for restaurants (food cost basis), and 15-25% for manufacturing. Net margins are typically 15-25% for software, 2-5% for retail, 3-9% for restaurants, and 5-10% for manufacturing. These benchmarks help you gauge whether your margins are competitive and sustainable.

Factor in All Costs

Many businesses fail because they calculate margin only on direct product cost, ignoring overhead. Your margin analysis must include: cost of goods (materials, manufacturing, packaging), fulfillment costs (shipping, handling, warehousing), transaction fees (credit card processing, marketplace commissions), returns and refunds (typically 5-15% of sales for e-commerce), customer acquisition cost (marketing spend divided by new customers), and proportional overhead (rent, utilities, salaries, software). Only the margin calculated against all costs tells you if you are truly profitable.

Use Keystone Pricing as a Starting Point

Keystone pricing means doubling your cost (100% markup = 50% margin). This has been the traditional retail standard for decades because it generally covers overhead and provides reasonable profit for most retail businesses. Start with keystone as your baseline, then adjust up for premium or unique products, niche markets with less price competition, or products with high handling costs. Adjust down for commodity products with heavy competition, high-volume low-touch items, or markets where price sensitivity is extreme. Keystone is a starting point, not a rule.

Monitor Margin Trends Over Time

Margins are not static. Track your margins monthly and investigate any downward trends immediately. Common causes of margin erosion include: supplier price increases you have not passed through, discounting too aggressively to win deals, product mix shifting toward lower-margin items, increased competition forcing price cuts, and rising overhead costs. A 2% margin decline might seem small, but on $1 million in annual revenue, that is $20,000 less profit. Set up a simple spreadsheet to track gross and net margins by product category and by month.

Common Mistakes to Avoid

  • Confusing margin with markup. This is the most common pricing error in business. A 50% markup is not a 50% margin — it is a 33.3% margin. Always clarify which metric you are using when discussing pricing with team members, accountants, or partners.
  • Setting prices based only on cost. Cost-plus pricing ignores market demand, perceived value, and competitor pricing. A product with $20 in costs might support a $100 price (80% margin) if it solves a significant problem, or might only sell at $30 (33% margin) if the market is competitive.
  • Ignoring the impact of discounts on margin. A 10% discount on a product with a 30% margin cuts your profit by one-third (from 30% margin to 22.2% margin). Before offering discounts, calculate how much additional volume you need to make up the margin loss.
  • Applying the same margin to all products. Different products serve different strategic purposes. Loss leaders attract customers, core products generate the bulk of profit, and premium products provide top margins. A portfolio approach to margins is more effective than a one-size-fits-all percentage.
  • Not recalculating margins when costs change. If your cost increases by $5 and you do not raise prices, your margin drops. Regularly review and adjust prices as costs change rather than waiting until margins have eroded significantly.

Frequently Asked Questions

Margin is the percentage of the selling price that is profit. Markup is the percentage of the cost price that is added on top. For example, if you buy a product for $60 and sell it for $100, your profit is $40. Margin is $40 / $100 = 40%. Markup is $40 / $60 = 66.7%. Margin is always lower than markup for the same product because margin uses the larger selling price as the denominator. Retailers commonly think in terms of margin because it directly shows what portion of each dollar of revenue is profit.

Good profit margins vary significantly by industry. As a general benchmark from the U.S. Small Business Administration, a net profit margin of 10% is considered average, 20% is considered high, and 5% is considered low. Grocery stores typically operate on 1-3% net margins, restaurants on 3-9%, retail clothing on 4-13%, software companies on 20-40%, and professional services on 15-25%. Your margin needs depend on your business volume, overhead costs, and growth goals. A high-volume business can thrive on lower margins, while a low-volume business needs higher margins to cover fixed costs.

The margin formula is: Margin = ((Selling Price - Cost) / Selling Price) x 100. For example, if your cost is $45 and your selling price is $80, subtract cost from selling price to get $35 profit, then divide by selling price: $35 / $80 = 0.4375, then multiply by 100 to get 43.75% margin. You can also work backwards: if you know your cost and desired margin, calculate selling price as: Selling Price = Cost / (1 - Margin / 100). For a $45 cost with a 40% target margin, selling price = $45 / (1 - 0.40) = $45 / 0.60 = $75.00.

Markup is always higher than margin for any profitable sale because they use different denominators. Markup divides profit by the smaller cost number, while margin divides profit by the larger selling price. Think of it this way: a 100% markup means you doubled your cost (sell at 2x cost), but that only produces a 50% margin because half of your revenue is cost. This relationship confuses many business owners who set prices based on markup but report profitability using margin. Use our calculator to see both numbers simultaneously and avoid pricing errors.

To convert margin to markup: Markup = Margin / (1 - Margin / 100). For a 30% margin: Markup = 30 / (1 - 0.30) = 30 / 0.70 = 42.86%. To convert markup to margin: Margin = Markup / (1 + Markup / 100). For a 50% markup: Margin = 50 / (1 + 0.50) = 50 / 1.50 = 33.33%. Common equivalences to remember: 50% markup = 33.3% margin, 100% markup = 50% margin, 200% markup = 66.7% margin.

Gross margin only accounts for the direct cost of goods sold (COGS) — the cost of materials and labor directly involved in producing or acquiring the product. Net margin accounts for all expenses including COGS, operating expenses (rent, utilities, salaries), marketing, taxes, and interest. A business might have a 60% gross margin but only a 15% net margin after all expenses. Both metrics are important: gross margin shows how efficiently you produce or source products, while net margin shows overall business profitability. Investors and lenders typically examine both when evaluating a business.

Sales volume and margin have an inverse relationship in most businesses. Higher volume often allows lower margins because fixed costs (rent, equipment, salaries) are spread across more units, reducing cost per unit. Walmart operates on roughly 2-3% net margins but sells enormous volumes. A specialty boutique might need 50%+ margins on lower volume to cover the same fixed costs. When setting prices, consider your break-even point: the number of units you must sell at a given margin to cover all fixed costs. Use break-even analysis alongside margin calculations to find the optimal price-volume combination for your business.

For day-to-day pricing decisions, markup is simpler because you apply a percentage to your known cost. However, for financial analysis and business planning, margin is more useful because it directly relates to revenue and profitability ratios. Most successful businesses set prices using a target margin, then verify the resulting markup makes sense competitively. Start with your target net margin (e.g., 15%), add back your operating expenses as a percentage of revenue, and that gives you the required gross margin. Then set your markup to achieve that gross margin. This ensures every sale contributes adequately to covering expenses and generating profit.

Related Calculators

Disclaimer: This calculator is for informational purposes only and does not constitute financial advice. Consult a qualified financial advisor before making financial decisions.

Last updated: February 23, 2026

Sources

  • U.S. Small Business Administration — Business Guide: sba.gov
  • U.S. Bureau of Labor Statistics — Industries at a Glance: bls.gov
  • U.S. Securities and Exchange Commission — EDGAR Full-Text Search: sec.gov
  • Internal Revenue Service — Tax Information for Businesses: irs.gov