Profit and Loss Calculator

Enter your cost price and selling price. See your profit or loss amount, profit margin percentage, and markup percentage to understand your business performance.

Updated June 2026 · How this works

How It Works
The formula, explained simply

This profit and loss calculator determines whether you made money, lost money, or broke even on a transaction by comparing your cost price to your selling price. The tool calculates the absolute dollar difference and converts it to percentage terms for better business analysis.

When you enter your cost price and selling price, the calculator first determines if you have a profit (selling price higher than cost), loss (selling price lower than cost), or break-even situation (prices equal). For profitable transactions, it calculates both profit margin and markup percentage to give you different perspectives on your pricing performance.

Profit margin shows what percentage of your selling price represents profit, which helps you understand how much of each sale dollar you keep. Markup percentage shows how much you increased the price above your cost, which helps with pricing strategy. The calculator also provides context about whether your margins are healthy based on common business benchmarks.

The results help you make pricing decisions, evaluate product profitability, and understand whether your current pricing strategy generates sufficient profit to cover business expenses and growth.

When To Use This
Right tool, right situation

Use this calculator when evaluating the profitability of individual products, services, or transactions. It helps determine whether your current pricing generates adequate profit margins for business sustainability and growth.

Apply the tool during pricing strategy reviews to understand how different price points affect profitability. Input various selling prices with your fixed cost to see how price changes impact profit margins and total profit amounts.

Use it when negotiating with suppliers or customers. Understanding your exact profit margins helps you determine your minimum acceptable prices and maximum cost thresholds while maintaining profitability targets.

The calculator proves valuable during inventory clearance decisions. Calculate the loss percentage on marked-down items to understand the financial impact of clearance pricing versus carrying inventory longer.

Common Mistakes
Why results sometimes look wrong

A common mistake is confusing profit margin with markup percentage. These measure different aspects of profitability and cannot be used interchangeably when setting prices or comparing performance across products.

Many businesses forget to include all costs in their cost price calculation. Your true cost price should include purchase price, shipping, handling fees, storage costs, and any other expenses required to get the product ready for sale. Using incomplete cost data makes profits appear higher than reality.

Another error is focusing only on dollar profit amounts without considering percentages. A $100 profit looks good, but it represents excellent performance on a $200 item and poor performance on a $5000 item. Always evaluate both dollar amounts and percentage margins.

Some businesses set prices based on desired dollar profit without considering market conditions or competitive pricing. Your profit and loss calculator results should inform pricing decisions alongside market research and customer value considerations.

The Math
Worked examples and deeper derivation

The fundamental profit and loss calculation subtracts cost price from selling price: Profit/Loss = Selling Price - Cost Price. Positive results indicate profit, negative results show losses.

Profit margin percentage uses the formula: (Selling Price - Cost Price) ÷ Selling Price × 100. This denominator of selling price makes profit margin useful for comparing different products or understanding what portion of sales revenue becomes profit.

Markup percentage follows: (Selling Price - Cost Price) ÷ Cost Price × 100. Using cost price as the denominator shows how much you marked up the original cost, which helps with pricing strategies and supplier negotiations.

For loss calculations, the percentage is: (Cost Price - Selling Price) ÷ Cost Price × 100. This shows what percentage of your original investment you lost on the transaction.

Retail product markup
Cost price $45, selling price $75
Shows $30 profit with 40% profit margin and 67% markup on cost.
Service business project
Cost price $2500, selling price $3200
Displays $700 profit with 21.9% margin, indicating healthy service pricing.
Clearance sale loss
Cost price $120, selling price $85
Reveals $35 loss representing 29.2% loss on original investment.

Common questions

How do I calculate profit margin percentage from cost and selling price?
Profit margin percentage is calculated as (Selling Price - Cost Price) ÷ Selling Price × 100. This shows what percentage of your selling price is actual profit. A 20% profit margin means $0.20 of every dollar you sell is profit.
What is the difference between profit margin and markup percentage?
Profit margin is profit divided by selling price, while markup is profit divided by cost price. If you buy for $80 and sell for $100, your profit margin is 20% but your markup is 25%. Markup shows how much you increased the price above cost.
What is a good profit margin for my business?
Profit margins vary by industry, but generally 5-10% is modest, 10-20% is healthy, and above 20% is excellent. Service businesses often achieve higher margins than retail. Compare your margins to industry benchmarks and ensure they cover all your business expenses plus desired profit.

Need something this doesn't cover?

Suggest a tool — we'll build it →