Profit Margin Calculator

Part of: Finance →


Set the Right Price — Not Just a Guess

Most pricing mistakes happen when business owners rely on intuition rather than numbers. This profit margin calculator lets you calculate profit margin %, gross margin ratio, and markup together for every scenario — so you can see whether a price actually generates profit before you commit to it. Ideal for retail, ecommerce, and any business that needs to price from real numbers: use it to validate existing prices, set a profitable selling price from cost, or find your true margin floor.

A small pricing mistake can reduce your profit more than a drop in sales — this calculator helps prevent that.

Key Profit Formulas

Margin (%) = (Profit ÷ Selling Price) × 100

Markup (%) = (Profit ÷ Cost Price) × 100

Example: Cost 100 → Selling Price 150 → Profit 50 → Margin 33.33% → Markup 50%

Used by ecommerce sellers, retailers, and business owners to make confident pricing decisions.  No data stored. Calculations run instantly in your browser.

Tip: Use “Selling Price from Margin” mode to find the exact price needed to hit your target profit margin.

Profit
Gross Margin %
Markup %
Selling Price
Profit
Markup %
Selling Price
Profit
Gross Margin %
Gross Profit
Gross Margin %
Markup %
Gross Margin %
COGS
Markup %

What Your Result Means

Profit Margin Formula (Quick Answer)

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

This formula shows how much of your selling price becomes profit after covering cost.

Tip: Always check your margin before finalising any pricing decision — small cost changes or platform fees can have a surprisingly large impact on actual profit.

How to Use the Profit Margin Calculator

  1. Select the calculation mode — Margin %, Selling Price from Margin, Selling Price from Markup, Gross Profit from Revenue, or Margin % from Profit.
  2. Enter the known values — cost price, selling price, COGS, revenue, target margin %, or markup % as required by the active mode.
  3. Click Calculate to see Gross Profit, Margin %, and Markup % together with the full formula used.
  4. Use the result to set a price, validate a margin target, or compare scenarios before committing to a pricing decision.

What Is Profit Margin?

Profit margin measures how much of your revenue remains as profit after covering the cost of goods sold. It is the single most important pricing metric for any business — telling you in plain percentage terms how efficiently each sale converts into actual profit.

Whether you run an ecommerce store, a retail shop, a wholesale operation, or a service business, knowing your gross margin before setting prices is essential. This calculator uses the standard gross profit margin formula applied in real-world invoicing, financial reporting, and business planning.

Gross Profit Margin Formula

Gross Profit = Revenue − Cost of Goods Sold (COGS) Gross Margin % = (Gross Profit ÷ Revenue) × 100
  • Revenue = total income from sales before any deductions
  • COGS = direct costs of the goods or services sold (materials, production, purchase price)
  • Gross Margin % = the share of each dollar of revenue that is profit

What Gross Margin Tells You

Profit Margin vs Markup — The Critical Difference

These two figures use the same underlying numbers but measure entirely different things. Confusing margin and markup is one of the most common and costly pricing errors in business.

FactorGross MarginMarkup
Based onSelling price (revenue)Cost price
Formula(Profit ÷ Selling Price) × 100(Profit ÷ Cost Price) × 100
AlwaysLower (for the same transaction)Higher (for the same transaction)
Who uses itFinance, accounting, investorsProcurement, sales, retail buyers
Example (Cost 100, Sell 150)33.33%50%

The Classic Example

Cost Price: 100  |  Selling Price: 150

Profit = 150 − 100 = 50

Gross Margin % = (50 ÷ 150) × 100 = 33.33%  —  profit as a share of selling price

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

The rule: Margin is always lower than markup for a profitable product. A supplier who quotes "50% markup" has not created a 50% margin — the actual gross margin is 33.33%. This gap grows significantly as the percentage rises. Always confirm which figure is being used before building a pricing structure or accepting a deal.

How to Calculate Selling Price from Margin or Markup

Most pricing decisions start with a known cost and a target return. Here are the two most common reverse-calculation scenarios.

Selling Price from Target Gross Margin %

Selling Price = Cost Price ÷ (1 − Target Margin% ÷ 100)
  • Example: cost = 100, target margin = 33.33% → Selling Price = 100 ÷ 0.6667 = 150
  • Use this when you have a margin target and need to work backward to a price

Selling Price from Markup %

Selling Price = Cost Price × (1 + Markup% ÷ 100)
  • Example: cost = 100, markup = 50% → Selling Price = 100 × 1.50 = 150
  • Use this when a supplier or buyer quotes a markup and you need the final price

Both modes are available in the calculator above. Each result shows both the gross margin and the markup percentage so you always see the complete picture regardless of which mode you use.

Once you have your net selling price, use the GST Calculator to add the applicable tax rate and calculate the GST-inclusive price for customer invoices.

How Businesses Use Gross Margin Calculations

Setting ecommerce product prices

Online sellers typically buy at a wholesale cost and need to cover platform fees (5–15%), payment processing (1.5–3%), shipping, returns, and still achieve a target margin. The correct approach is to add all variable costs to the product cost before calculating margin — the selling price must cover all of them, not just the purchase price.

Retail pricing and category management

Retailers track gross margin by category. High-margin categories (seasonal, branded, private label) subsidise low-margin must-carry lines. Reviewing margin by SKU helps identify which products to promote, discontinue, or reprice. A 10-point margin improvement on 100 units generates more profit than doubling sales at the same thin margin.

Wholesale and distribution pricing

Wholesalers apply markup to landed cost to set trade prices, then check whether the resulting margin is sustainable at expected volume. Bulk pricing tiers, early payment discounts, and freight all erode effective margin — calculating at each tier prevents agreeing to deals that look profitable but are not.

Service business pricing

Service businesses define COGS as direct labour time plus materials or tools. A freelancer with a 500 daily cost (time + software) quoting a 700 project achieves only a 28.6% margin — below the 40%+ that most service businesses need to cover overheads. Running mode 1 of this calculator confirms whether a quote is actually profitable.

Financial reporting

Gross margin appears on the income statement above operating expenses and is the first profitability figure investors and lenders review. Consistent gross margins above industry benchmark signal pricing discipline. Declining margins quarter-over-quarter indicate rising COGS or pricing pressure. For loan-based business financing, the Loan Calculator and Interest Calculator help model the debt cost that must be recovered through margin.

Common Pricing Mistakes That Damage Gross Margin

Real Business Examples

Ecommerce Product

Product cost (from supplier): 28  |  Platform fee (12%): 4.80  |  Processing fee (2%): 0.80

Total effective COGS: 28 + 4.80 + 0.80 = 33.60

Selling price: 40  |  Gross Profit: 40 − 33.60 = 6.40

Gross Margin: (6.40 ÷ 40) × 100 = 16%  |  Markup on supplier cost: 42.9%

The markup looks healthy but the actual margin is only 16% once platform and processing fees are included.

Retail Item

Purchase cost: 60  |  Target gross margin: 55%

Selling Price = 60 ÷ (1 − 0.55) = 60 ÷ 0.45 = 133.33

Profit: 73.33  |  Markup on cost: 122.2%

Service Business

Direct cost (labour + materials): 800  |  Project quote: 1,400

Gross Profit: 600  |  Gross Margin: (600 ÷ 1,400) × 100 = 42.9%

Markup on cost: (600 ÷ 800) × 100 = 75%

At 42.9% margin, this project contributes strongly to covering fixed overheads.

After setting your margin, use the Percentage Calculator for quick percentage cross-checks. Use the Discount Impact Calculator to understand how discounts reduce your margin and how much extra volume is needed to recover the lost profit. Use the Break-even Calculator to see how your margin affects break-even — the exact revenue your business needs to earn before profit begins.

Gross Margin Benchmarks by Industry

Use your sector benchmark as a minimum target, not a ceiling. Margins above benchmark indicate efficient pricing or sourcing. Margins consistently below benchmark signal either pricing pressure or cost inefficiency that needs addressing.

Why Use AixKit Profit Margin Calculator

Use This as a Pricing Calculator for Your Business

Beyond calculating margin on a known cost and price, this tool works as a practical selling price calculator, a markup calculator, and a pricing calculator for everyday business decisions.

As a selling price calculator

Enter your cost and a target gross margin percentage. The calculator returns the exact selling price you need to charge to hit that margin. This is the fastest way to price a new product, set a quote for a client, or validate that a proposed price is actually profitable — not just covering cost. For a dedicated tool with additional pricing modes, use the Selling Price Calculator to set the correct selling price from margin, markup, profit amount, or revenue goal.

As a markup calculator

Enter cost and markup percentage to find the selling price and confirm the resulting gross margin. Because markup and margin are different measures, seeing both together prevents the common error of believing a 50% markup creates a 50% margin (it creates 33.33%).

As a gross margin calculator for financial review

Enter revenue and COGS to produce the gross profit and gross margin ratio. Use this mode when reviewing product category performance, preparing financial summaries, or comparing margins across different product lines to identify where pricing or sourcing improvements are needed.

After calculating your profit margin, use the GST Calculator to determine the final selling price including tax without affecting your true margin. For promotional scenarios, the Discount Calculator shows how discounting impacts your gross margin. Use the Percentage Calculator for quick percentage cross-checks on any figure.

Frequently Asked Questions

Next step: Use the Break-even Calculator to see how your margin affects break-even — the exact sales volume your business needs before profit begins.