Calculate profit margin, markup, and required prices for your products or services. Enter cost and price to see profitability, or set a target margin to determine the selling price. Ideal for e-commerce sellers, traders, and business owners setting competitive prices.
Margin Calculator
How to Use This Tool
Select the calculation type from the dropdown. Enter the required values (cost, price, quantity, or target margin) and click Calculate. Use Reset to clear all fields and start over.
Formula and Logic
Calculate Margin & Markup
- Profit per unit = Selling Price - Cost
- Total Profit = Profit per unit × Quantity
- Profit Margin = (Profit per unit / Selling Price) × 100
- Markup = (Profit per unit / Cost) × 100
Calculate Required Price
- Required Selling Price = Cost / (1 - Target Margin/100)
- Total Required Revenue = Required Selling Price × Quantity
Calculate Required Cost
- Maximum Cost = Selling Price × (1 - Target Margin/100)
- Total Maximum Cost = Maximum Cost × Quantity
Practical Notes
Profit margin is a critical metric for business health. In retail and e-commerce, a typical gross margin ranges from 20% to 50%, but varies widely by industry. For example, grocery stores operate on thin margins (1-3%), while software companies enjoy high margins (80%+).
Markup is often confused with margin. Markup is the percentage added to cost to determine price, while margin is the percentage of the selling price that is profit. For the same cost and price, markup is always higher than margin.
When setting prices, consider all costs: direct costs (materials, labor), overhead (rent, utilities), and variable costs (shipping, transaction fees). Use this calculator to ensure your pricing covers all costs and meets profit targets.
In B2B trade, negotiate margins based on order volume, payment terms, and long-term relationships. Volume discounts may reduce per-unit margin but increase total profit.
Why This Tool Is Useful
This calculator helps you make data-driven pricing decisions. Quickly assess if a product or service is profitable, determine the selling price needed to achieve a target margin, or find the maximum cost you can bear for a given price. It’s essential for product costing, quote preparation, and strategic planning.
Frequently Asked Questions
What is the difference between margin and markup?
Margin is profit as a percentage of the selling price. Markup is profit as a percentage of the cost. For example, if you buy for $50 and sell for $100, your markup is 100% (because $50 is 100% of $50) but your margin is 50% (because $50 profit is 50% of $100).
What is a good profit margin?
There is no universal benchmark. A 10% net profit margin is considered average, 20% is good, and 30%+ is excellent. However, industries vary: restaurants average 3-5%, manufacturing 10-15%, and digital products 70-90%. Research your industry’s standards.
How do I account for overhead costs?
This calculator uses direct cost and price. For a full picture, allocate overhead (rent, salaries, marketing) to your products. Alternatively, use a gross margin calculator for product-level decisions and a net margin calculator for overall business profitability.
Additional Guidance
Regularly review your margins to identify underperforming products. Use target margins to set minimum selling prices and avoid loss-leading strategies unless intentional. In e-commerce, factor in platform fees (e.g., Amazon 15%, Shopify 2.9% + $0.30) and shipping costs. For trade businesses, consider bulk discounts from suppliers and payment terms (net 30, net 60) that affect cash flow.