Profit Margin
Calculate profit margin and markup from cost and selling price.
Calculate profit margin, gross profit, markup percentage, net margin and target selling price instantly.
Choose a calculation mode below
Enter your cost and selling price to calculate profit, margin and markup.
Enter cost and desired margin to calculate the required selling price.
Enter total revenue and cost of goods sold to calculate gross margin.
Enter revenue and total expenses to calculate net profit margin.
Your calculations are performed directly in your browser. No account, registration or sign-up is required.
Four Calculation Modes
Use one calculator for pricing, profitability and business margin analysis.
Calculate profit margin and markup from cost and selling price.
Find the selling price required for a desired profit margin.
Compare revenue with cost of goods sold to find gross margin.
Calculate net profit and net margin from revenue and expenses.
Profit Formulas
Profit Margin Guide
Our free profit margin calculator helps businesses, online sellers, freelancers and entrepreneurs calculate profit, margin percentage, markup and selling price. You can also calculate gross profit margin from revenue and cost of goods sold or estimate net profit margin from total revenue and expenses.
Understanding profit margin can help with pricing, cost analysis and profitability reviews. However, the usefulness of any result depends on whether the relevant costs and expenses have been included consistently.
Profit margin expresses profit as a percentage of selling price or revenue. For a simple product calculation, profit is the difference between selling price and cost.
For example, if a product costs 80 and sells for 100, the profit is 20. The profit margin is 20% because the 20 profit is divided by the 100 selling price.
Margin and markup both describe profit, but they use different bases. Profit margin divides profit by selling price or revenue. Markup divides profit by cost.
| Metric | Formula | Example |
|---|---|---|
| Profit | Price โ Cost | 100 โ 80 = 20 |
| Margin | Profit รท Price | 20 รท 100 = 20% |
| Markup | Profit รท Cost | 20 รท 80 = 25% |
Gross profit is calculated by subtracting cost of goods sold from revenue. Gross profit margin then expresses that gross profit as a percentage of revenue.
Gross Profit = Revenue โ COGS
Gross Margin (%) = Gross Profit รท Revenue ร 100
Net profit margin compares net profit with revenue. In this calculator's simplified net margin mode, net profit is calculated as total revenue minus the total expenses entered.
Net Profit = Revenue โ Total Expenses
Net Margin (%) = Net Profit รท Revenue ร 100
If you know your cost and desired margin, the required selling price can be calculated by dividing cost by one minus the target margin expressed as a decimal.
Selling Price = Cost รท (1 โ Target Margin)
For example, a cost of 80 with a target margin of 20% requires a selling price of 100 because 80 divided by 0.80 equals 100.
Profit margin calculations can be useful for retailers, e-commerce sellers, wholesalers, freelancers, agencies, service businesses, manufacturers and entrepreneurs. The exact cost inputs may differ depending on the business model.
A margin calculation is only as useful as the values entered. Depending on your purpose, relevant costs may include purchase cost, manufacturing, packaging, shipping, transaction fees, platform charges, discounts or other expenses.
Gross margin and net margin also answer different questions. Gross margin generally focuses on revenue after direct cost of goods sold, while net margin reflects a broader measure after relevant total expenses.
This calculator provides general estimates for informational and educational purposes only. It does not provide accounting, tax, investment or financial advice. Business costs, accounting treatment, taxes and profitability measures may vary. Verify important calculations and decisions with appropriate qualified professionals.
Related Tools
FAQ