Margin Calculator

Calculate profit margin, gross margin, markup, selling price, cost, revenue, and profit. Use this margin calculator to understand how much of each sale is left after cost.

Calculate Margin

Margin = Profit ÷ Selling Price × 100. Markup = Profit ÷ Cost × 100.
Your result will appear here.

How the margin calculator works

Find margin:
Enter cost and selling price to calculate profit, margin, and markup.

Find selling price:
Enter cost and target margin to calculate the selling price needed.

Find cost:
Enter selling price and margin to estimate the maximum cost allowed.

Total sales margin:
Enter total revenue and total cost to calculate overall margin.

Why use a margin calculator?

A margin calculator helps with pricing, product planning, sales analysis, and profit tracking. It shows how much profit is left from each sale after subtracting cost.

It is especially helpful when comparing products, setting prices, or reviewing whether your current pricing leaves enough room for profit.

What your result means

Your result shows the profit margin, profit amount, markup percentage, cost, selling price, and total sales numbers when applicable. Margin shows profit as a percentage of selling price, while markup shows profit as a percentage of cost.

Margin calculator formulas

Frequently asked questions

What is profit margin?

Profit margin shows what percentage of the selling price is profit after subtracting cost.

How do you calculate margin?

Subtract cost from selling price to get profit. Then divide profit by selling price and multiply by 100.

What is the difference between margin and markup?

Margin compares profit to selling price. Markup compares profit to cost.

Can margin be negative?

Yes. Margin is negative when cost is higher than the selling price, meaning the sale loses money.