Skip to main content
AixKit AixKit


Margin Calculator

Use AixKit's free Profit Margin Calculator to calculate margin %, markup %, selling price, and profit instantly. Five modes cover every pricing and margin sc...



Profit
Margin %
Markup %
Selling Price
Profit
Markup %
Selling Price
Profit
Margin %
Profit
Margin %
Markup %
Margin %
Cost
Markup %

How to Use the Profit Margin Calculator

  1. Choose the calculation mode that matches your scenario — Margin %, Selling Price from Margin, Selling Price from Markup, Profit from Revenue, or Margin % from Revenue.
  2. Enter the known values in the input fields — cost price, selling price, markup %, desired margin %, or revenue as required by the selected mode.
  3. Click Calculate to instantly see Profit, Margin %, and Markup % together with the formula used.
  4. Use the result to set prices, validate margins, or compare different cost and selling price scenarios.

What Is Profit Margin?

Profit margin is the percentage of revenue that remains as profit after deducting the cost of the goods or services sold. It is one of the most important metrics in business and pricing — a number that tells you how much value you are actually keeping from every sale you make.

This calculator uses standard profit margin formulas used in real-world pricing, invoicing, and financial planning.

The Core Formula

Profit = Selling Price − Cost Price Margin % = (Profit ÷ Selling Price) × 100
  • Margin is always expressed as a percentage of the selling price
  • A 30% margin means 30 cents of every dollar earned is profit
  • The formula works for individual products, orders, or entire revenue lines

Types of Profit Margin

  • Gross Profit Margin — Revenue minus direct cost of goods sold (COGS), before operating expenses. The most commonly used margin in pricing decisions.
  • Operating Profit Margin — Gross profit minus operating costs such as rent, wages, and utilities. Reflects overall operational efficiency.
  • Net Profit Margin — What remains after all costs, taxes, and interest. The final bottom-line profitability figure.

This calculator focuses on gross profit margin — the figure most relevant to product pricing, selling strategy, and day-to-day business decisions. For related percentage-based calculations, the Percentage Calculator is a useful companion.

Profit Margin vs Markup — A Critical Difference

Margin and markup are both derived from the same numbers — cost price and selling price — but they are not the same thing, and confusing them is one of the most costly pricing errors a business can make.

FactorMarginMarkup
Based onSelling priceCost price
Formula(Profit ÷ Selling Price) × 100(Profit ÷ Cost Price) × 100
Always lower thanMarkup (for same numbers)Margin (for same numbers)
Used byFinance, accounting, investorsSales, procurement, retail buyers
Example (Cost 70, Sell 100)30%42.86%

Concrete Example

Cost Price: 350  |  Selling Price: 500

Profit: 500 − 350 = 150

Margin % = (150 ÷ 500) × 100 = 30%  —  profit as a share of selling price

Markup % = (150 ÷ 350) × 100 = 42.86%  —  profit as a share of cost price

The key rule: margin is always lower than markup when both are positive. A salesperson who quotes a 50% markup has not created a 50% margin — the actual margin is approximately 33.3%. This gap widens as the percentage rises. Always confirm which figure your supplier, buyer, or accountant is using before building a price.

How to Calculate Profit Margin — All Five Modes

Mode 1 — Margin % from Cost and Selling Price

Profit = Selling Price − Cost Price Margin % = (Profit ÷ Selling Price) × 100 Markup % = (Profit ÷ Cost Price) × 100

Mode 2 — Selling Price from Cost + Desired Margin %

Selling Price = Cost Price ÷ (1 − Margin% ÷ 100)
  • Use this when you know your target margin and need to set a price from cost
  • Example: cost = 350, target margin = 30% → Selling Price = 350 ÷ 0.70 = 500

Mode 3 — Selling Price from Cost + Markup %

Selling Price = Cost Price × (1 + Markup% ÷ 100)
  • Use this when a supplier quotes a markup and you need the final retail price
  • Example: cost = 350, markup = 42.86% → Selling Price = 350 × 1.4286 = 500

Mode 4 — Profit from Revenue and Total Cost

Profit = Revenue − Total Cost Margin % = (Profit ÷ Revenue) × 100

Mode 5 — Margin % from Revenue and Known Profit

Margin % = (Profit ÷ Revenue) × 100 Cost = Revenue − Profit Markup % = (Profit ÷ Cost) × 100

How Businesses Use Margin Calculations

Retail and eCommerce pricing

Retailers and online sellers typically work backward from a target margin. Once a product cost is known, the calculator tells them the selling price required to hit that margin. This prevents underpricing, which erodes profit, and overpricing, which kills conversion rates. On marketplaces like Amazon or Shopify, platform fees must be factored into cost before calculating margin.

Wholesale and bulk buying

Wholesalers apply markup to cost to determine trade prices and then check whether the resulting margin is sustainable. A 50% markup sounds strong but produces only a 33% margin — knowing both figures helps negotiate with suppliers and set realistic price tiers for volume orders.

Service business pricing

Freelancers and service businesses define cost as labour time plus tools or materials. Applying a target margin ensures the quoted project rate is profitable, not just busy. Service margins are typically higher than product margins because COGS is lower, but overheads like software, hardware, or office space still need to be factored in.

Financial reporting and investor review

Investors and accountants review margin as a health indicator. Consistent gross margins above industry benchmarks signal strong pricing power. Declining margins over quarters indicate rising costs or pricing pressure. The GST-free or pre-tax selling price is the correct input when comparing margins across periods. Use the GST Calculator to separate tax from price before running margin analysis.

Break-even pricing

At zero margin, selling price equals cost. Any margin above zero contributes to covering fixed overheads. Understanding the minimum margin needed to cover fixed costs helps set a pricing floor below which selling is unprofitable.

Common Pricing Mistakes That Hurt Margin

  • Confusing markup with margin — setting a 40% markup while believing it produces a 40% margin understates cost recovery by a significant amount. A 40% markup on a 100-unit cost gives a 140 selling price but only a 28.6% margin, not 40%.
  • Forgetting platform and payment fees — Amazon charges 8–15% referral fees; Stripe or similar processors charge 1.5–3%. These reduce the net selling price and therefore reduce actual margin. Always add these to cost before calculating.
  • Pricing to beat competitors without checking margin — matching a competitor's price without knowing your own cost structure can lock you into a margin that does not cover fixed costs. Calculate margin first, then evaluate whether the price is competitive.
  • Including GST in the cost base — if you are GST-registered, input tax credits mean GST paid on purchases is recoverable. Using the GST-inclusive price as your cost overstates cost and understates margin. Use the GST Calculator to extract the net cost before calculating margin.
  • Using revenue instead of profit for margin calculation — revenue growth does not guarantee margin improvement. A business can grow revenue by 20% and still shrink its margin if costs rise faster. Track margin percentage alongside revenue, not revenue alone.

When to Use Margin vs Markup

Choosing the right metric depends on who you are communicating with and what decision you are making.

Use Margin when you are:

  • Reporting to investors, accountants, or management
  • Comparing profitability across product lines or business units
  • Setting a target return on sales
  • Reviewing financial statements or KPIs
  • Calculating what share of revenue is actually profit

Use Markup when you are:

  • Pricing products based on supplier cost
  • Communicating price increases to procurement teams
  • Applying a standard multiplier across a product catalogue
  • Negotiating trade pricing with retail buyers
  • Building price lists from a cost-plus model

In practice, most pricing decisions start with markup (since cost is what you know) and then check margin (to confirm the result is sustainable). This calculator gives you both in every mode so you can work in whichever direction suits your situation.

For loan-based business finance decisions, the Loan Calculator and Interest Calculator are useful tools for understanding the cost of capital that affects your margin targets.

Practical Examples

Retail Product

Scenario: A clothing retailer buys a jacket for 80 and wants a 55% margin.

Selling Price = 80 ÷ (1 − 0.55) = 80 ÷ 0.45 = 177.78

Profit = 177.78 − 80 = 97.78

Markup = (97.78 ÷ 80) × 100 = 122.2%

eCommerce Product with Platform Fee

Scenario: Product cost 120; platform fee 15% of selling price; target margin 25%.

Effective cost = 120 ÷ (1 − 0.15 − 0.25) = 120 ÷ 0.60 = 200 selling price required

After platform fee (15% of 200 = 30): Net revenue = 170; Profit = 170 − 120 = 50; Margin = 29.4%

Always include platform fees and payment processing costs in your cost base before setting price.

Wholesale Margin Planning

Scenario: A wholesaler buys in bulk at 45 per unit and applies a 60% markup to set trade price.

Trade Price = 45 × 1.60 = 72

Profit per unit = 27  |  Margin = (27 ÷ 72) × 100 = 37.5%

Service Business Pricing

Scenario: A freelance designer quotes a project. Time + software costs = 600; they want a 40% margin.

Project Quote = 600 ÷ (1 − 0.40) = 600 ÷ 0.60 = 1,000

Profit = 400  |  Markup on cost = 66.7%

For pricing decisions that include tax, use the GST Calculator after setting your margin to determine the final GST-inclusive price to show customers. For discount scenarios, the Discount Calculator helps model promotional pricing impact on margin.

What Is a Good Profit Margin?

There is no universal answer — a good margin depends heavily on industry, business model, and competitive environment. Here are common gross margin benchmarks by sector:

  • Software / SaaS: 70–90% — low COGS, high scalability
  • Retail apparel and fashion: 50–65% — high product variety, seasonal demand
  • Electronics and technology products: 20–40% — competitive pricing pressure
  • Restaurant and food service: 60–70% gross (before labour and rent), but net margins often below 10%
  • eCommerce (general retail): 30–50%, highly dependent on supplier and platform costs
  • Wholesale / distribution: 15–30% — volume-driven, thin per-unit margins
  • Freelance / consulting services: 50–80% — low COGS, time-based pricing

Use your industry benchmark as a floor, not a ceiling. If your margin sits well below the benchmark, inspect whether your cost base is too high or your pricing is too low. Small margin improvements across a high volume of transactions produce significant profit gains.

Try different cost and price combinations in the calculator above to instantly see how margin and markup change across scenarios.

Why Use AixKit Profit Margin Calculator

  • Five calculation modes — margin, selling price, markup, profit, and reverse margin — all in one tool
  • Every result shows Profit, Margin %, and Markup % together so you have the full picture
  • Inline formula display for every calculation — see exactly how the number was reached
  • Zero to divide-by-zero safe — validated inputs prevent errors before they happen
  • No Chart.js, no jQuery, no bloated libraries — instant results, no lag
  • Free, no account required — works on desktop, tablet, and mobile

Frequently Asked Questions


Comments and Feedback