Free Calculator USA

Profit/Loss Calculator

Find your profit or loss amount and percentage from cost price and selling price. Free, instant and no sign-up.

Use this when: you bought and sold something and want the profit or loss in dollars and as a percent. Setting a selling price from your cost? Use the Markup and Margin Calculator.

Quick answer: Profit or loss = (selling price − cost price) × quantity. Divide it by the cost price and multiply by 100 for the percentage. Example: 10 items bought at $40 and sold at $55 give a $150 profit, which is 37.5% of cost.

Last updated: November 1, 2026. Free, runs in your browser, nothing is saved.

How profit and loss is calculated

Profit is what you earn when you sell something for more than it cost you. Loss is what you lose when you sell it for less. Enter the cost price and selling price of one item and the quantity, and the calculator shows the total cost, total revenue, the profit or loss in dollars and the profit or loss as a percentage of cost.

The formula

Profit or loss = (selling price − cost price) × quantity. Profit or loss % = (selling price − cost price) ÷ cost price × 100. A positive result is a profit and a negative result is a loss.

Example

If you buy 10 items at $40 each and sell them at $55 each, your total cost is $400 and your revenue is $550. That is a profit of $150, or 37.5% of cost.

Profit and loss examples

These are quick examples you can check against the calculator.

Cost eachSell eachQuantityTotal costRevenueResult
$40$5510$400$550Profit $150 (+37.5%)
$25$3020$500$600Profit $100 (+20%)
$12$1850$600$900Profit $300 (+50%)
$60$485$300$240Loss $60 (−20%)
$100$853$300$255Loss $45 (−15%)

How to set a selling price for a target profit

Selling price = cost price × (1 + target profit % ÷ 100). If an item costs $40 and you want a 25% profit, sell it at $40 × 1.25 = $50. Selling at exactly the cost price is the break-even point, where you make no profit and no loss. To plan how many sales you need to cover fixed costs, read the break-even point formula.

Markup vs margin

This calculator gives your percentage on cost, which is also called markup. Profit margin is measured against the selling price instead. In the example above the margin is $150 ÷ $550, about 27.3%. The same sale always shows a higher markup than margin, so be sure which number you mean when you price products.

Who uses it

Small online sellers, shop owners, freelancers pricing a service and students learning business math.

Tips

Remember to include shipping, fees and taxes in the cost price, otherwise your real profit will be lower than the result shown. This calculator gives an estimate only.

Frequently asked questions

Can the percentage be negative?

The calculator shows a loss as a positive number labeled Loss. A loss means you sold for less than the cost.

Does it include shipping, fees or taxes?

Only if you add them into the cost price.

How do I calculate profit percentage?

Subtract the cost price from the selling price, divide by the cost price and multiply by 100. Buying at $40 and selling at $55 gives (55 − 40) ÷ 40 × 100 = 37.5%.

How do I calculate loss percentage?

Subtract the selling price from the cost price, divide by the cost price and multiply by 100. Buying at $60 and selling at $48 is a loss of 12 on 60, which is 20%.

How do I find the selling price for a target profit?

Multiply the cost price by 1 plus the profit percent divided by 100. For a 30% profit on a $40 item, the selling price is $40 × 1.30 = $52.

What is the difference between profit percentage and profit margin?

Profit percentage (markup) is measured against the cost price. Profit margin is measured against the selling price. A $40 item sold at $55 has a 37.5% markup but a margin of about 27.3%.

Is my data stored?

No. The calculation runs in your browser and nothing is sent to our servers.

Related calculators

Keep reading

Browse all calculators or all guides.