Profit Margin Calculator
Calculate your profit margin from cost and selling price.
Enter your numbers to calculate your margin.
Input unit cost and selling price to view instant profit analysis.
$40.00 cost leaves $60.00 (60.00%) in gross profit.
Every $100 in revenue yields $60.00 in gross margin after covering direct costs.
Formulas & Logic
Transparent mathematical formulas behind this calculation engine.
Gross Profit
Gross Profit = Selling Price - CostGross profit represents the immediate dollar earnings retained on each unit to cover operating overhead and business expenses.
Profit Margin (%)
Profit Margin = (Gross Profit ÷ Selling Price) × 100Measures the portion of the selling price retained as profit after covering direct production or acquisition costs. Margin cannot exceed 100%.
Markup (%)
Markup = (Gross Profit ÷ Cost) × 100The percentage added on top of your unit cost to establish your final selling price.
Return on Cost (%)
Return on Cost = (Gross Profit ÷ Cost) × 100Measures the yield or return generated on every dollar of inventory or direct production capital deployed.
Target Selling Price from Margin
Selling Price = Cost ÷ (1 - (Target Margin ÷ 100))Use this formula to determine the necessary selling price when you know your unit cost and require a specific margin percentage.
Worked Example
Standard Retail Example ($40 Cost / $100 Price)
A business sources a product for $40.00 in direct manufacturing and landed costs and sells it to customers for $100.00.
- Unit Cost (COGS)
- $40.00
- Selling Price
- $100.00
- Gross Profit
- $60.00
- Profit Margin
- 60.00%
- Markup
- 150.00%
- Return on Cost
- 150.00%
- Gross Profit = $100.00 - $40.00 = $60.00
- Profit Margin = ($60.00 ÷ $100.00) × 100 = 60.00%
- Markup = ($60.00 ÷ $40.00) × 100 = 150.00%
- Return on Cost = ($60.00 ÷ $40.00) × 100 = 150.00%
Takeaway: On a $100 sale, $40 recovers direct costs while $60 remains as gross profit. A 60% profit margin corresponds to a 150% markup because markup is calculated against the smaller cost base ($40), not total revenue ($100).
Methodology & Assumptions
Underlying definitions and operational accounting principles.
- Cost of Goods Sold (COGS)
- Represents the direct variable costs needed to produce or acquire the item, including raw materials, supplier price, and inbound shipping. It does not include fixed overhead.
- Gross Margin vs. Net Margin
- This tool calculates gross margin. It does not deduct indirect business expenses like rent, marketing, administrative salaries, utilities, software fees, or income taxes.
- Pre-Tax Pricing
- Inputs and calculations are pre-tax. Sales tax, VAT, or duties should either be excluded from both cost and price or accounted for consistently.
Frequently Asked Questions
Practical answers regarding margins, markups, and pricing strategy.
What is profit margin?
Profit margin is a profitability metric that measures the percentage of sales revenue a business keeps after paying for direct production or acquisition costs. A higher margin indicates a more financially resilient business capable of absorbing operational overhead and marketing expenses.
How do you calculate profit margin?
To calculate profit margin, first determine gross profit by subtracting direct unit cost (COGS) from your selling price. Next, divide gross profit by the selling price and multiply by 100. Formula: Profit Margin = ((Selling Price - Cost) ÷ Selling Price) × 100.
What is the difference between margin and markup?
Margin is profit expressed as a percentage of the selling price, while markup is profit expressed as a percentage of the cost. Because cost is lower than selling price on profitable sales, markup percentage is always higher than profit margin percentage for the same product.
Is gross margin the same as net margin?
No. Gross margin only deducts direct cost of goods sold (COGS) like materials and manufacturing. Net margin deducts all remaining business operating expenses, including rent, payroll, advertising, software subscriptions, loan interest, and taxes.
How do I calculate selling price from a target margin?
To calculate the required selling price for a desired margin, divide your unit cost by 1 minus your target margin percentage in decimal form. Formula: Selling Price = Cost ÷ (1 - Margin). For example, to earn a 40% margin on a $60 cost: $60 ÷ (1 - 0.40) = $60 ÷ 0.60 = $100.
When is a profit margin calculator useful?
A profit margin calculator is essential when evaluating product viability, reviewing supplier price changes, setting wholesale discount tiers, or determining whether revenue growth is generating sufficient gross profit to support operating overhead.
Related Calculators
Complementary tools for pricing and profitability analysis.
Calculate markup percentage, gross profit, and selling price from unit cost.
Calculate required selling price based on cost and target profit margin or markup.
Calculate discounted sale price and savings amount.
Calculate gross profit dollars and gross margin from revenue and COGS.