Skip to content
——/tools · free · no signup

Profit Margin Calculator

Enter your cost and price to split out profit, margin, and markup — then set a target margin and it tells you exactly what to charge. Simple arithmetic on your own numbers.

Margin, markup & profit

Know your real margin.

Enter what a product or job costs you and what you charge. It splits out margin, markup, and profit — then tells you the price to hit any target margin.

→ Your numbers
Profit per sale
$40
Profit margin
profit as a % of price
40%
Markup
profit as a % of cost
66.7%
Price for a 50% margin
charge this to hit your target
$120
Math: margin = (price − cost) ÷ price · price for target = cost ÷ (1 − margin)
——The formula

The Profit Margin Calculator uses three core formulas. First, profit is calculated as Selling Price minus Cost Price. Second, the profit margin (as a percentage) is (Profit ÷ Selling Price) × 100. This margin represents the portion of each sales dollar that is profit. Third, the markup (as a percentage) is (Profit ÷ Cost Price) × 100, showing how much the price is increased above cost. To find the selling price needed to achieve a target margin, rearrange the margin formula: Selling Price = Cost Price ÷ (1 - (Target Margin ÷ 100)). For example, if your cost is $50 and you want a 40% margin, the price is $50 ÷ (1 - 0.40) = $83.33. This calculation is critical because margin and markup are often confused: a 50% markup equals a 33.3% margin, not 50%. The tool ensures you set prices correctly by converting between these metrics. All variables are defined in plain language: cost is what you pay for the product or service, selling price is what the customer pays, profit is the difference, margin is profit relative to price, and markup is profit relative to cost.

——Worked examples

Coffee Shop: Brewing Costs

A coffee shop buys a bag of coffee beans for $10 (cost). They sell each brewed cup for $3.50 (selling price). Profit = $3.50 - $10? Wait, that's negative. Let's correct: They use 1/20th of a bag per cup, so cost per cup is $0.50. Selling price is $3.50. Profit = $3.50 - $0.50 = $3.00. Margin = ($3.00 ÷ $3.50) × 100 = 85.7%. Markup = ($3.00 ÷ $0.50) × 100 = 600%. If they target a 70% margin, the required price = $0.50 ÷ (1 - 0.70) = $1.67. They can charge $1.67 and still meet their margin goal.

Freelance Graphic Designer: Hourly Rate

A designer has a cost of $30 per hour (including software, taxes, and overhead). They currently charge $75 per hour. Profit = $75 - $30 = $45. Margin = ($45 ÷ $75) × 100 = 60%. Markup = ($45 ÷ $30) × 100 = 150%. They want a 50% margin to be competitive. Required price = $30 ÷ (1 - 0.50) = $60 per hour. They can lower their rate to $60 and still maintain a 50% margin.

E-commerce Reseller: Retail Arbitrage

A reseller buys a vintage lamp for $40 at a flea market (cost). They list it online for $100 (selling price). Profit = $100 - $40 = $60. Margin = ($60 ÷ $100) × 100 = 60%. Markup = ($60 ÷ $40) × 100 = 150%. If they want a 45% margin to account for shipping and fees, required price = $40 ÷ (1 - 0.45) = $72.73. They can price it at $72.73 and still achieve their target margin.

——How to read the result

A 'good' profit margin depends heavily on the industry and business model. Generally, a margin above 50% is considered high, while below 20% may be low for most retail or service businesses, but this is not a rule. For example, grocery stores often operate on margins of 1-3% due to high volume, while software companies can have margins above 80%. The key principle is that margin should cover all operating expenses (rent, salaries, marketing) and still leave net profit. A common benchmark is to aim for a net profit margin of 10-20% after all costs, but this varies. When interpreting your margin, compare it to your historical data or to direct competitors if you have reliable figures. Markup, on the other hand, is often higher in retail (e.g., 100% markup is common). Remember that a 50% margin means you keep half of each dollar after cost, while a 50% markup means you added 50% to the cost. Using a target margin helps ensure you price for profitability, not just to cover costs. Be cautious: if your margin is very low (<10%), you may be underpricing or have high costs; if it's very high (>80%), ensure it's justified by perceived value. No single number is universally 'good'; instead, focus on consistency and covering your total costs.

——Common mistakes

A common mistake is confusing margin with markup. For example, a 50% markup on a $100 cost gives a $150 price, but the margin is only 33.3%, not 50%. Another error is using cost as the denominator for margin (e.g., dividing profit by cost instead of price), which overstates profitability. People also forget to include all costs in the 'cost' input, such as shipping, taxes, or labor, leading to inflated margins. A frequent edge case is when the selling price is less than cost, resulting in a negative profit and margin, which the calculator correctly shows as a loss. Additionally, when using the target margin feature, if you input a margin of 100% or more, the formula divides by zero or gives a negative price, which is mathematically impossible—the tool should flag this. Some users set a target margin without considering market demand, leading to overpricing. Finally, rounding errors can occur: using $1.3333 for a price might be misrounded to $1.33, slightly altering the margin. Always double-check with the tool's reverse calculation.

——Glossary
Profit Margin
The percentage of revenue that remains as profit after subtracting the cost of goods sold, calculated as (Profit / Selling Price) × 100.
Markup
The percentage increase from the cost price to the selling price, calculated as (Profit / Cost Price) × 100.
Cost Price
The total amount paid to acquire or produce a product or service, including materials, labor, and overhead.
Selling Price
The amount charged to the customer for a product or service.
Target Margin
A desired profit margin percentage used to calculate the necessary selling price for a given cost.
——FAQ

What is the difference between margin and markup?

Margin is profit divided by selling price (percentage of revenue), while markup is profit divided by cost (percentage of cost). They are not the same; a 50% markup equals a 33.3% margin.

How do I calculate selling price from margin?

Use the formula: Selling Price = Cost / (1 - (Target Margin / 100)). For example, if cost is $50 and target margin is 40%, price = $50 / 0.60 = $83.33.

Can I have a negative profit margin?

Yes, if your selling price is less than your cost, profit is negative, resulting in a negative margin. This indicates a loss on each sale.

What is a good profit margin for a small business?

It varies widely by industry, but many small businesses aim for a net profit margin of 10-20% after all expenses. Higher margins are better but depend on your cost structure.

Why does my margin change if I lower my price?

Lowering the selling price reduces profit if cost stays the same, so margin decreases. The tool recalculates automatically when you adjust price.

What if I input a target margin of 100%?

A 100% margin would mean profit equals selling price, requiring cost to be zero. The formula divides by zero, so it's invalid. The calculator should alert you to enter a margin below 100%.

Does this calculator include taxes or other fees?

No, it only uses the cost and selling price you enter. You should include all relevant costs in the cost field to get an accurate margin.

How do I use the target margin for multiple products?

Enter the cost for each product individually and set your desired target margin. The calculator will give the required price for each one.

From numbers to a business

Pricing for margin instead of guessing is the whole game — every bundle's pricing framework is built around it.

Reviews

We’re early. Real reviews only.

Apex Digital launched recently. Every purchase comes with a request for honest feedback through our help center. When real buyers write real reviews, they go here — with their permission, by name. Until then, this section stays empty. No fakes. No stock photos. No bullshit.

Used something from the catalog? Leave honest feedback →

While you’re here…