How to Calculate Profit Margin: Clear Steps from Cost and Price to Percentage
Profit margin is the percentage of the selling price that remains after cost. Calculating it is simple arithmetic once the two inputs are known. This page provides the step-by-step method, the reverse calculation (price from target margin), and the link to markup.
You can perform the steps manually or use the free Discount & Markup Calculator to obtain the margin (or the required price) instantly.
Step 1 – Gather Cost and Selling Price
Use consistent units and the same time period or transaction. Cost is normally the product cost (COGS); selling price is the actual or planned price before any further discounts if you are setting the base price.
Step 2 – Calculate Profit
Step 3 – Divide and Convert to Percentage
The related markup calculation is covered on the how to calculate markup page. The conceptual difference is explained on the markup vs margin page.
Reverse Calculation – Price from Target Margin
Cost $40, target margin 40 % → Selling Price = 40 ÷ 0.60 ≈ $66.67.
This is the most useful form when you start from a residual-profit goal rather than from a traditional markup percentage. The profit margin calculator and the main tool both support it.
Worked Example
Cost $50, Selling price $100 → Profit $50 → Margin 50 %.
After a 20 % discount the sale price becomes $80 → Profit $30 → Margin 37.5 %.
The discount effect is explored further on the discount calculator and selling price after discount pages.
Cluster Links
Frequently Asked Questions
How do I calculate profit margin step by step?
1. Determine cost and selling price. 2. Subtract cost from selling price to obtain profit. 3. Divide profit by selling price. 4. Multiply by 100 to express as a percentage.
What is the profit margin formula?
Profit Margin = (Selling Price − Cost) ÷ Selling Price × 100.
How is this different from markup?
Margin uses selling price as the base; markup uses cost as the base. See the Markup vs Margin page for a full comparison.
Can I start from a target margin and find the price?
Yes. Selling Price = Cost ÷ (1 − Margin). The Discount & Markup Calculator performs this calculation.
Should I recalculate margin after a discount?
Yes. A discount lowers the selling price and therefore lowers the margin. Always re-check.
Where can I calculate it automatically?
Use the free Discount & Markup Calculator. Enter cost and price (or cost and target margin) to obtain the result.
Final Call to Action
Calculate profit margin now
Know the residual percentage after every price decision. Calculate margin before you publish and after every discount.
Open the free Discount & Markup Calculator