About Margin Calculator

Calculate profit margin, markup percentage, and gross profit instantly. Convert between margin and markup with a two-way calculator. Free for any business.

How to use

  1. Enter your product or service cost (what you pay to acquire or produce it) and your selling price (what the customer pays). The calculator instantly computes both your profit margin and markup percentage, showing the dollar profit amount as well.
  2. Alternatively, start with your cost and a desired margin or markup percentage to find the required selling price. Enter your $15 cost and a target 40% margin, and the calculator shows you need to charge $25.
  3. Use the two-way converter to switch between margin and markup percentages. A 50% markup sounds like a lot, but it is only a 33.3% margin. A 100% markup (doubling your cost) yields a 50% margin.
  4. Review the gross profit amount for individual items and scale it to your expected sales volume. If your margin is $10 per unit and you sell 500 units per month, your monthly gross profit is $5,000 before overhead.
  5. Compare margins across your entire product line by running each item through the calculator. Identify your highest-margin products and consider shifting marketing spend toward those items to improve overall profitability.
  6. Factor in all costs when entering your cost price — not just the wholesale price, but also shipping, handling, packaging, and payment processing fees (typically 2.5-3% for credit cards), which can quietly erode your actual margin.

Frequently asked questions

What is the difference between margin and markup?
Margin and markup both measure profit from different reference points. Margin is profit as a percentage of the selling price: selling for $100 with $60 in costs gives a 40% margin ($40/$100). Markup is profit as a percentage of cost: the same $40 profit on $60 cost is a 66.7% markup ($40/$60). Markup is always higher than margin for the same transaction. The conversion formula is: Margin = Markup / (1 + Markup). Understanding both is essential because suppliers quote markup while retailers and investors think in margin.
How do I calculate profit margin?
Gross profit margin = (Revenue - Cost of Goods Sold) / Revenue x 100. For a product selling at $80 that costs $48, the margin is ($80 - $48) / $80 = 40%. Net profit margin subtracts all operating expenses (rent, salaries, marketing, utilities): if that $80 product also carries $12 in operating costs per unit, the net margin is ($80 - $48 - $12) / $80 = 25%. Most business discussions about margin refer to gross margin unless specifically stated otherwise.
What is a good profit margin for a small business?
Healthy margins vary by industry. Retail businesses operate on 2-5% net margins (high volume, low margin). Restaurants average 3-9% net margin, though fast-casual concepts can reach 15%. Professional services firms enjoy 15-25% net margins because labor is their primary cost. Software and SaaS businesses can achieve 20-40% net margins at scale. Gross margins are much higher — 50-60% is common for many businesses. If your margins are below your industry average, look at increasing prices or reducing costs through better supplier terms.
How do I convert markup to margin?
The formula is: Margin = Markup / (1 + Markup). Common conversions: 25% markup = 20% margin, 33.3% markup = 25% margin, 50% markup = 33.3% margin, 100% markup = 50% margin, 200% markup = 66.7% margin. Going the other direction: Markup = Margin / (1 - Margin). A 30% margin requires a 42.9% markup, and a 40% margin requires a 66.7% markup. These conversions matter when suppliers quote markup but financial reports use margin.
How does sales tax affect profit margin?
Sales tax (HST/GST in Canada) should not affect your margin calculation because it is collected on behalf of the government, not kept as revenue. If you sell a product for $100 plus 13% HST in Ontario, the customer pays $113 but your revenue is $100. Calculate margin using the pre-tax selling price only. However, some businesses mistakenly include HST in revenue when calculating margins, which inflates the number. The sales tax collected minus input tax credits (ITCs) from business expenses is remitted to the CRA quarterly.
What is the difference between gross margin and net margin?
Gross margin measures profit after subtracting only the direct cost of goods sold. Net margin subtracts everything — COGS, rent, salaries, marketing, insurance, utilities, taxes, and interest. A business might have a healthy 60% gross margin but only a 10% net margin after overhead. Gross margin tells you whether pricing is viable. Net margin tells you whether the overall business is profitable. When evaluating pricing decisions, focus on gross margin. For business health and competitor comparisons, use net margin.
How should I price my products for a target margin?
Divide your total cost per unit (COGS + shipping + packaging + processing fees) by (1 - target margin as decimal). For a 40% margin with $30 in costs: $30 / (1 - 0.40) = $50 selling price. Then validate against the market — check competitor pricing, assess your value proposition, and consider customer perception. If the market cannot support your target margin, reduce costs or accept a lower margin. Many businesses use tiered pricing: low-margin products to attract customers, and premium products at high margins for profitability. If you prefer working from cost upward, use the Markup Calculator to calculate the selling price directly from your cost and desired markup percentage.

Part of ToolFluency’s library of free online tools for Finance. No account needed, no data leaves your device.