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
- Select the calculation mode that matches your task
- If analyzing existing pricing, enter your cost and selling price to see current margin and markup
- If setting a price, enter your cost and target margin to see the required selling price
- If evaluating a supplier, enter your revenue target and margin goal to see the maximum acceptable cost
- 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.