📈

Margin Calculator

Gross margin • Profit margin • Markup • Selling price • Solve any variable

Enter any 2 — third will be solved
$
$
%
Enter any 2 — third will be solved
$
$
%
Enter cost and revenue to see full breakdown
$
$

A margin calculator is a tool that helps you figure out how money you are really making from a product or service. You need to know how much it costs you and how much you sell it for. If you sell something for little money you will not make as much profit as you could. On the hand if you sell it for too much money people might not want to buy it from you. This can happen if you do not do the math first.The margin calculator is for people like retailers, wholesalers, people who sell things online manufacturers, freelancers and students who study finance. These people need to be able to do pricing math correctly.

Quick Answer Box

A margin calculator is a free online tool that calculates profit margin, markup percentage, or selling price using your product’s cost and revenue figures. It applies standard accounting formulas to instantly show gross profit and margin percentage, helping you price products for consistent profitability without manual math.


What Is a Margin Calculator?

A margin calculator is a tool that figures out how money you make on something when you sell it. It does this by looking at the price you sell it for. The price it cost you to make or buy it. You can use a margin calculator to find out your profit, gross margin, markup or the price you should sell something for. 

The profit that a company makes is the money that is left over after they sell something and subtract what it cost them to make it. This profit is an amount of dollars. Margin is when you take that profit and you figure out what percentage it is of the price that you sold the thing for. 

Accurate pricing matters because even small margin errors compound across thousands of transactions. A product priced with a 5% margin instead of a planned 15% margin can turn a profitable product line into a loss-maker once volume scales up.

It’s worth noting that a margin calculator only works with the numbers you give it. It doesn’t automatically factor in overhead, shipping, taxes, or payment processing fees unless you build those into your cost price first — more on this in the limitations section below.

How Does the Margin Calculator Work?

The calculator works by taking two of three core inputs — cost price, selling price, or margin percentage — and solving for the missing value using standard profit formulas. Enter your known figures, choose what you want to calculate, and the tool returns profit, margin, and markup instantly.

Here are the key terms and formulas involved:

Core formulas:

Profit = Selling Price − Cost Price

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

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

For example, if a product costs $40 and sells for $60:

Notice that margin and markup produce different percentages from the same numbers — this is the single most common source of pricing confusion, covered in detail further down.

How to Use the Margin Calculator

  1. Enter the product cost (Cost Price).
  2. Enter the selling price, or the margin percentage you want to hit.
  3. Select which value you want the calculator to solve for: margin, markup, or selling price.
  4. Click Calculate.
  5. Review the calculated margin percentage and profit amount.
  6. Compare the result against your target margin or competitor pricing.
  7. Adjust cost or price inputs to test different pricing scenarios.
  8. Use the final numbers to set or update your product pricing.

Margin vs Markup

When we talk about profit we use two terms: margin and markup. They are different because margin is profit divided by the price we sell something for and markup is profit divided by what it costs us. So markup is always a percentage than margin when we are talking about the same sale. A lot of business owners get margin and markup mixed up. This is one of the biggest mistakes they make when it comes to pricing. 

FeatureMarginMarkup
FormulaProfit ÷ Selling Price × 100Profit ÷ Cost Price × 100
Base valueSelling PriceCost Price
Typical useProfitability analysis, financial reportingSetting retail prices from cost
Value relative to the otherAlways lower than markup on the same saleAlways higher than margin on the same sale
Common mistakeAssuming margin % equals markup %Using markup % as if it were margin %
Example (cost $40, price $60)33.3% margin50% markup

A quick way to remember it: markup starts from what you paid; margin starts from what the customer paid. If you set a 50% markup thinking it gives you a 50% margin, you’ll actually land at a 33.3% margin — a gap that can throw off financial forecasts if it goes unnoticed.

Factors That Affect Profit Margin

Profit margin isn’t fixed — it shifts with costs, pricing decisions, and market conditions. Cost of goods sold, discounts, and operating expenses are the biggest drivers, but external factors like competition and demand also play a role.

FactorImpact on MarginExample
Cost of Goods Sold (COGS)Higher COGS directly shrinks marginRaw material price increase cuts margin by 5%
Selling PriceRaising price increases margin, if demand holdsA $2 price increase adds several points of margin
Discounts & PromotionsDiscounts reduce effective marginA 20% off sale can erase most of the profit
Operating CostsNot reflected unless included in cost priceRent and utilities reduce true profitability
TaxesReduce net profit, not gross marginSales tax collected isn’t part of margin math
Shipping CostsCan silently erode margin on low-price itemsFree shipping offers cut margin on small orders
Manufacturing CostsHigher labor or material costs lower marginOvertime pay during peak season
Marketing ExpensesReduces net margin if not priced inHigh ad spend on a low-margin product
CompetitionCan force prices down, compressing marginUndercutting a competitor’s price
Market DemandHigh demand supports higher marginsLimited-edition products often carry higher margin

Benefits of Using a Margin Calculator

Limitations of Margin Calculators

A margin calculator gives you accurate math based on the numbers you enter, but it doesn’t automatically account for every real-world cost. It typically does not include:

To get a true picture of profitability, build these costs into your cost price before calculating, or track them separately in your net profit analysis. This tool is for general pricing guidance only — it is not a substitute for professional financial advice. For major pricing, tax, or business decisions, consult a qualified accountant or financial professional.

Practical Margin Calculation Examples

Small retail business — A boutique buys a jacket for $30 and sells it for $75. Profit = $45 | Margin = 60% | Markup = 150%

eCommerce seller — A phone case costs $3 to source and sells online for $15. Profit = $12 | Margin = 80% | Markup = 400%

Wholesale distributor — A distributor buys bulk goods at $8 per unit and sells to retailers at $11. Profit = $3 | Margin = 27.3% | Markup = 37.5%

Manufacturing company — A furniture maker spends $150 to produce a chair and sells it for $220. Profit = $70 | Margin = 31.8% | Markup = 46.7%

Restaurant owner — A dish costs $6 in ingredients and sells for $18 on the menu. Profit = $12 | Margin = 66.7% | Markup = 200%

Freelancer pricing services — A freelance designer spends $50 in project costs (software, stock assets) and charges a client $300. Profit = $250 | Margin = 83.3% | Markup = 500%

Tips to Improve Profit Margin


Frequently Asked Questions

What is a good profit margin?The net margin is different for each type of business. Usually a net margin of 10 percent is thought to be normal. A net margin of 20 percent is really good. On the hand a net margin of 5 percent or less is not very good. 

Can a business have high revenue but low margin?A company can definitely make a lot of sales. Still not make much money from each sale. This is especially true for businesses that sell things like groceries or products in bulk.  

What is gross profit margin? Gross profit margin measures profit after subtracting only the direct cost of producing a good or service (COGS), before accounting for operating expenses, taxes, and other overhead. 

Why is my margin lower than my markup? Because margin is calculated against selling price while markup is calculated against cost price, and selling price is always higher than cost price on a profitable sale. This makes markup mathematically larger than margin every time.

How can I improve my business margin?To save money and be more efficient we should make some changes. We need to cut down on the costs of making things and running the business. It is also an idea to talk to our suppliers and see if we can get a better deal, from them. We should think carefully about how much we charge for things and try to sell more of the things that make us the most money 


Conclusion

You need to know your profit margin before you set a price. This is not something you can skip. It is what makes a business grow or lose money slowly. If you are setting a price for one thing or looking at all the things you sell you need to understand what margin, markup and profit are. This way you can set a price. Feel good, about it. You can use the margin calculator above to see what your numbers are.