Margin Calculator

Margin Calculator. Enter your cost and revenue (or any two of cost, revenue, profit, or markup) into the Margin Calculator and get back your profit margin %, markup %, gross profit, and revenue — all calculated together. Adjust any two fields and the rest update automatically, giving you a full picture of your pricing and profitability. Also try the calculate Estimated Business Value, Adjusted Annual Earnings & Applied Discount Rate — Business Valuation.

Margin Calculator inputs

The total cost to produce or purchase the item.

The price at which the item is sold.

%

Enter a desired margin % to back-calculate revenue (leave blank to compute from cost & revenue).

%

Enter a desired markup % to back-calculate revenue (leave blank to compute from cost & revenue).

Results

Profit Margin

--

Markup

--

Gross Profit

--

Revenue

--

Cost

--

Setting a price without knowing your cut is guesswork, so use this margin calculator to turn a cost and a selling price into profit margin and markup in one step. Whether your business resells sneakers or runs a small bakery, it shows how much of every sales dollar you actually keep as profit.

Margin Percentage Calculator: Inputs and Results

A margin percentage calculator needs only two of four values: cost, revenue, profit or markup. Enter any pair and the tool solves the rest, so you can work forward from a price you already charge or backward from the profit you want. A profit margin calculator like this also doubles as a quick profit calculator and a GP calculator.

Cost, Revenue and Profit Inputs

Cost is what you paid for the item, revenue is the amount customers pay, and profit is what remains. Take a jacket with a cost per unit of $38.40 that sells at a price per unit of $61.50. The unit profit is $23.10, and your cost price never changes unless your supplier does.

Waterfall chart splitting a $61.50 jacket price into $38.40 cost and $23.10 profit
Revenue, cost and profit for the jacket example: a 37.56% profit margin.

Reading Margin Percentage and Markup Results

For that jacket the margin percentage is 37.56%, while the markup is 60.16%. The markup percentage is larger because it divides by the smaller number, cost. Express any result as a percentage of revenue and you can compare it with any other product, and a decimal such as 0.3756 works the same way.

How to Calculate Profit Margin: Formula and Steps

Learning how to calculate profit margin takes three moves: subtract cost from revenue, divide by revenue, then multiply by 100. The formula is a plain revenue minus cost calculation scaled by sales, and the same profit margin formula applies to a single item or an entire quarter of sales.

$$\text{Profit Margin (\%)} = \frac{\text{Revenue} - \text{Cost}}{\text{Revenue}} \times 100$$

Gross Margin Formula Step by Step

It uses cost of goods sold (COGS) as the cost. Subtract COGS from revenue to get gross profit, then divide by revenue. Your gross profit margin for the jacket: ($61.50 − $38.40) ÷ $61.50 × 100 = 37.56%. A gross profit calculator runs exactly these steps, and it ignores net income effects.

Reverse Calculation for a Required Selling Price

A reverse calculation starts from the desired profit margin. Say a supplier charges $54.20 and you want a 28% target margin. The required selling price is $54.20 ÷ (1 − 0.28) = $75.28, which leaves $21.08 of profit and a 38.89% markup. Add the total cost of any extras first, then divide.

Margin & Markup Calculator: Margin vs Markup

Every margin & markup calculator handles two ratios that are easy to confuse. Margin divides profit by the selling price; markup divides profit by cost. This margin vs markup gap explains why a 50% markup never delivers a 50% margin, and why quoting the wrong one can undercut you.

Converting Markup Percentage to Margin

Divide the markup by one plus the markup, in decimal form. This is how accounting teams translate between the two without redoing a full calculation.

MarkupMargin
18%15.25%
35%25.93%
55%35.48%
80%44.44%
Dumbbell chart comparing four markup percentages with the lower profit margin each produces
The same profit shows a lower margin than markup, and the gap grows with markup.

Types of Margins: Gross Margin, Operating and Net Margin

People use the word loosely, so check which one you mean. Here, the calculator counts only direct costs. A gross margin calculator answers the question of price, while operating margin subtracts operating expenses too. Net margin goes further and includes interest and taxes, and this kind of analysis shows your overall financial health.

Net Profit Margin and Contribution Margin

Net profit margin is what remains after all expenses, including rent, wages and overhead. Contribution margin subtracts only variable costs, so you can find the break-even point once fixed cost is known. With $1,800 of monthly fixed cost and $23.10 of unit profit, you need 78 jackets a month.

Pricing a Ceramic Mug from Cost and Target Profit Margin

Dana makes stoneware mugs and has to quote a boutique that wants to resell them. Her landed cost is $9.35 per mug: clay, glaze, firing and packing. She opens the calculator, enters that cost and a 42% margin goal, and reads the selling price: $9.35 ÷ 0.58 = $16.12. The profit is $6.77 per mug, a 72.40% markup on cost. Boutiques commonly keystone, which means doubling the wholesale price for a 50% margin on their own shelf, so she knows the shop will retail near $32.

ScenarioCostPriceMargin
Planned quote$9.35$16.1242.00%
Clay price rises, quote unchanged$10.20$16.1236.72%
Clay price rises, quote reset$10.20$17.5942.01%

The rerun is the part she watches: $0.85 of extra cost removes 5.28 points of margin, so she resets the quote to $17.59 before signing. The input to watch is cost, because a flat price turns every supplier increase into lost profit.

There is one trap. Typing 42% into the markup field instead gives a price of $13.28 and only a 29.59% margin, which is what a careless backward calculation produces and why she double-checks every quote. Dana checks the result by hand: $16.12 minus $9.35 is $6.77, and $6.77 ÷ $16.12 is 42%. The calculator also leaves out her booth fees and operating expenses, so she treats 42% as a gross figure and compares it with her net result separately each quarter, once the real bills are in.

Healthy Margin Benchmarks: A Good Sales Margin by Industry

A good profit margin depends on what you sell. Grocers live on 1-3%, restaurants on 3-7%, clothing retailers on 25-50% and software on 70-95%. Hitting your sector's range signals healthy profitability for your whole business, not just a single product line.

Good Profit Margin by Industry

Compare yourself with similar wholesalers, services firms and shops of your size, because an industry with thin margins needs high volume. Entrepreneurs often aim for 20-40% and adjust once real profitability data arrives.

Negative Margin and Loss Leader Pricing

A negative margin appears when you sell below cost. A loss leader does that deliberately to attract traffic, but only works if other items subsidise it. Enter a price below cost and the calculator returns a negative percentage, which flags the loss. Clearing old inventory is another reason to accept a thin margin.

Pricing Strategy with a Margin Calculator

Use the result to set a pricing strategy for your products, since every business needs margins that cover its other products and costs: raise prices where margin lags, trim cost where it stays healthy, and revisit both during financial planning. Investors also read these numbers as a sign of efficiency.

Margin Calculator for Retailers and Wholesalers

Sellers online and in stores track margin per SKU. An ecommerce business with thousands of items can enter each SKU's inputs, let the calculator return its margin, and sort by that result to find which listings earn their shelf space.

Hidden Costs: Shipping, Sales Tax and Discount

Real margin shrinks once extras arrive. A 10% discount on the $61.50 jacket cuts the price to $55.35 and the margin to 30.62%. Absorb $2.10 of shipping and it falls to 26.83%. Sales tax is collected for the state, so exclude it from revenue.

Bar chart of profit margin falling from 37.56% to 26.83% after a discount and shipping
How a price cut and extra freight erode the jacket's margin.

Break-Even Price at a Target Margin

Enter your landed price and margin goal, or divide it by one minus that margin. That price is where you stop losing and start earning, so check it against what rivals charge before committing.

Margin Calculator Limits: Margin Trading Explained

In finance, margin trading means borrowing from a broker, which is unrelated to profit margin. A margin requirement sets the deposit, and a maintenance margin is the minimum equity you must keep. Leverage magnifies gains and losses, and a margin call forces you to add cash. This calculator measures profit on goods and services, not borrowed trading funds, so none of these terms appear in its results.