Skip to content

Margin Calculator

Calculate Gross Profit Margin, Markup percentage, and total profit.

Last Updated:
Share this tool

Margin vs. Markup: The Key Difference

This is the most common confusion in retail pricing. They both measure profit, but use different bases for calculation.

Same Product, Different Perspectives

Cost
$50
Selling Price
$100
Profit
$50

📊 Margin (50%)

$50 profit ÷ $100 price

Question answered: What % of my revenue is profit?

📈 Markup (100%)

$50 profit ÷ $50 cost

Question answered: How much did I add to my cost?

Quick Conversion Reference

MarginMarkupExample (Cost $100)
20%25%Sell at $125
33%50%Sell at $150
50%100%Sell at $200
60%150%Sell at $250

💡 Pro Tip

Markup is always higher than margin for the same product. If someone says "100% markup," that's only a 50% margin!

Gross Margin Formula

Gross margin calculates what percentage of your total sales revenue is retained as gross profit.

PriceThe final selling price to the customer
CostCost of Goods Sold (COGS)

Manual Calculation: 50% Margin vs Markup

You buy a product for $50 and sell it for $100.

1. Calculate Profit
The absolute profit.
2. Calculate Margin
Profit divided by the Selling Price.
3. Calculate Markup
Profit divided by the Cost.
Result
A 100% markup yields a 50% profit margin.

How the margin calculator turns cost and price into three numbers

You enter a cost and a selling price. The tool returns profit (price − cost), gross margin (profit ÷ price × 100) and markup (profit ÷ cost × 100). This is profit margin on a sale, not margin borrowing in a brokerage account. The cost box should hold cost of goods sold for one unit; the IRS describes that cost as inventory, purchases, production labor, materials and costs such as freight-in. Rent, advertising and owner pay are outside it, so the result is a gross margin, not a net margin.

Price increases lift margin with diminishing effect. On a $36 cost, moving the price from $60 to $70 raises margin from 40.00% to 48.57%, while moving from $90 to $100 raises it only from 60.00% to 64.00%. Cost increases cut profit dollar for dollar. Margin cannot reach 100% unless cost is zero, whereas markup has no upper limit.

Second worked example: a $60 item that costs $36

Inputs: Cost $36.00, Selling Price $60.00. Step 1, profit: $60.00 − $36.00 = $24.00. Step 2, gross margin: $24.00 ÷ $60.00 = 0.40, or 40.00%. Step 3, markup: $24.00 ÷ $36.00 = 0.6667, or 66.67%. The calculator shows the same three figures.

To work backward from a target margin, divide cost by (1 − margin). For a 40% margin on a $36 cost: $36 ÷ 0.60 = $60. The tool does not solve for price, so either use that formula or adjust the price until the margin reads your target.

A price below cost produces negative results. At an $80 cost and a $70 price the loss is $10, gross margin is −14.29% and markup is −12.50%.

From one item to the margin on your books

For a whole year, the IRS figures gross profit by subtracting cost of goods sold from net receipts, where net receipts are gross receipts less returns and allowances. Divide that gross profit by net receipts and you have the annual gross margin, the same ratio this calculator gives for a single sale. Operating expenses come off afterward and are what separate gross margin from net margin.

Enter the price before sales tax. Tax collected from the customer passes through to the government and does not pay for the goods, so including it inflates the margin.

Limits and edge cases

  • One product at a time; a blended margin across items sold in different volumes needs weighted totals.
  • Shipping out, card processing fees, returns and discounts are excluded unless you fold them into the cost or price you enter.
  • A $0 price shows 0% margin and a $0 cost shows 0% markup rather than an undefined result.
  • Brokerage margin (borrowing to buy securities) is a different topic and is not calculated here.

Disclaimer: Gross margin from this tool reflects only the per-unit cost you type. Overhead, payment fees and income tax are left out, so an item that looks profitable here can still lose money once operating costs are counted; use your accounting records for pricing that matters.

Sources checked

Frequently Asked Questions

What is the difference between Margin and Markup?
Margin is profit divided by revenue. Markup is profit divided by cost. Markup is always higher than margin for the same product.
How do I calculate Gross Margin?
Formula: ((Price - Cost) / Price) * 100. It shows what percentage of your revenue is actually profit.
Why is margin important?
It measures the profitability of a product or service. Low margins mean you need high volume to make money, while high margins allow for more flexibility.
How do I find the selling price for a target margin?
Divide cost by (1 minus the target margin as a decimal). A $36 cost at a 40% target margin needs a price of $36 / 0.60 = $60.
Is this a brokerage or trading margin calculator?
No. This page calculates profit margin on a sale. Margin in a brokerage account, which means borrowing from a broker to buy securities, is a separate calculation.

About the Margin Calculator

Determine gross profit margin, markup percentage, and selling price for your products.

Results are estimates; verify regulated rates, eligibility rules, and professional decisions with the cited primary source.

Important: Educational Purposes OnlyThe calculators, estimates, and financial formulas provided on CalculatorVillage.com are for informational and educational purposes only. They are not intended as certified financial planning, tax, legal, or investment advice. Actual rates, terms, and returns will vary. Always consult with a qualified professional before making significant financial decisions.