Profit Margin Calculator
Calculate your profit margin percentage from revenue and costs. Covers gross margin, net margin, and markup calculations.
How Does the Profit Margin Calculator Work?
The profit margin calculator determines what percentage of your revenue is actual profit after subtracting costs. This is one of the most fundamental financial metrics for any business, whether you are a solo freelancer, a small business owner, or managing a large enterprise. Understanding your profit margin tells you how efficiently your business converts revenue into profit and whether your pricing strategy is sustainable in the long run.
Profit margin is expressed as a percentage and is calculated by dividing profit (revenue minus costs) by revenue, then multiplying by 100. A higher profit margin means you keep more money from each dollar of revenue, while a lower margin indicates that a larger portion of your revenue goes toward covering costs. This calculator supports three modes: calculating margin from revenue and cost, finding the revenue needed to achieve a target margin, and determining the maximum cost you can afford while maintaining a target margin.
One of the most important distinctions in business finance is the difference between profit margin and markup, and many people confuse the two. Profit margin is calculated as a percentage of the selling price (revenue), while markup is calculated as a percentage of the cost. For example, if you buy a product for $60 and sell it for $100, your profit is $40. Your profit margin is 40% ($40 / $100), but your markup is 66.7% ($40 / $60). The same dollar profit yields very different percentages depending on whether you use revenue or cost as the base. This is critical for pricing decisions because a 50% markup does not equal a 50% margin — it actually equals a 33.3% margin.
Formulas
Profit = Revenue − Cost
Profit Margin (%) = (Profit ÷ Revenue) × 100
Markup (%) = (Profit ÷ Cost) × 100
Required Revenue = Cost ÷ (1 − Target Margin / 100)
Maximum Cost = Revenue × (1 − Target Margin / 100)
Margin = Markup ÷ (1 + Markup)
Markup = Margin ÷ (1 − Margin)
The relationship between margin and markup is governed by a simple but often overlooked formula: Margin = Markup / (1 + Markup). If your markup is 0.50 (50%), your margin is 0.50 / 1.50 = 0.333 (33.3%). Conversely, Markup = Margin / (1 - Margin). If your target margin is 40% (0.40), the required markup is 0.40 / 0.60 = 0.667 (66.7%). Mastering this relationship helps you move seamlessly between cost-based pricing (markup) and revenue-based pricing (margin) depending on the context of your business decisions.
Examples
Example 1: Service Business
A consulting firm generates $10,000 in revenue per month with total costs of $7,000 (salaries, software, rent, and overhead). The profit is $3,000. The profit margin is ($3,000 / $10,000) × 100 = 30%. The markup is ($3,000 / $7,000) × 100 = 42.9%. This means the firm keeps 30 cents of every revenue dollar as profit, and its services are priced at a 42.9% premium above cost. A 30% margin is considered healthy for a service-based business.
Example 2: Product Business
An online retailer sells a product for $50 that costs $30 to source and ship. The profit per unit is $20. The profit margin is ($20 / $50) × 100 = 40%, and the markup is ($20 / $30) × 100 = 66.7%. For every $50 sale, the retailer retains $20 as gross profit. A 40% margin gives solid room for marketing expenses, returns, and operating overhead while still maintaining profitability.
Example 3: SaaS Business
A SaaS product charges $100 per month with a cost of approximately $20 per user (server hosting, support, payment processing). The profit per user is $80. The profit margin is ($80 / $100) × 100 = 80%, and the markup is ($80 / $20) × 100 = 400%. SaaS businesses typically enjoy very high margins because the marginal cost of serving an additional user is low once the software has been built. However, this does not account for customer acquisition costs, which can significantly reduce the effective margin.
Gross Margin vs. Net Margin
Gross profit margin considers only the direct costs of producing your goods or services (cost of goods sold, or COGS). Net profit margin accounts for all expenses including operating costs, taxes, interest, depreciation, and other overhead. For example, a business with $100,000 in revenue, $40,000 in COGS, and $30,000 in operating expenses has a gross margin of 60% but a net margin of only 30%. When using this calculator, it is important to be clear about which costs you are including. If you enter only direct costs, you get a gross margin figure. If you include all expenses, you get a figure closer to net margin.
Operating margin falls between gross and net margin. It includes COGS plus operating expenses (rent, salaries, marketing) but excludes taxes and interest payments. Many investors and analysts consider operating margin the most useful profitability metric because it reflects the core efficiency of the business operations without being distorted by financing decisions or tax strategies.
What Is a Good Profit Margin?
Profit margin benchmarks vary significantly by industry. Grocery stores and retail businesses often operate on razor-thin margins of 1% to 3%. Manufacturing companies typically see margins between 5% and 15%. Professional services and consulting firms often achieve 15% to 40%. Software and SaaS companies can reach 60% to 90% gross margins, though net margins are usually lower after sales and marketing costs. As a general rule, a net profit margin above 10% is considered healthy for most industries, while anything above 20% is excellent. The key is to compare your margin against industry benchmarks rather than using a one-size-fits-all target.
Frequently Asked Questions
What is the difference between margin and markup?
Profit margin and markup both measure profitability, but they use different bases for the calculation. Margin is the percentage of the selling price (revenue) that is profit, while markup is the percentage of the cost that is added to arrive at the selling price. For example, if you sell something for $100 that costs $60, your margin is 40% (profit divided by revenue) but your markup is 66.7% (profit divided by cost). The same dollar amount of profit appears as a smaller percentage when expressed as margin because the base (revenue) is larger than cost. This distinction is critical for pricing — if a supplier tells you to apply a 50% markup, that results in a 33.3% margin, not a 50% margin.
What is a good profit margin for a business?
A good profit margin depends heavily on your industry, business model, and stage of growth. In retail and grocery, net margins of 1% to 5% are normal. Manufacturing typically sees 5% to 15%. Professional services and consulting firms often achieve 15% to 40%. Technology and SaaS companies can have gross margins of 60% to 90%, though their net margins may be lower due to high customer acquisition costs. As a general benchmark, a net profit margin above 10% is considered healthy for most industries. If your margin is below your industry average, it may indicate pricing issues, high overhead, or inefficient operations that need attention.
How can I increase my profit margin?
There are two fundamental levers for increasing profit margin: raise revenue or reduce costs. On the revenue side, you can increase prices (if the market supports it), upsell or cross-sell additional services, focus on higher-margin products or clients, and improve your value proposition so customers are willing to pay more. On the cost side, you can negotiate better rates with suppliers, reduce waste, automate repetitive tasks, outsource non-core functions, and eliminate unprofitable product lines. Many businesses find that the fastest path to better margins is pruning low-margin offerings rather than trying to grow overall revenue. A 5% reduction in costs often has a bigger impact on margin than a 5% increase in revenue.
What is the difference between gross margin and net margin?
Gross margin measures the profit remaining after subtracting only the direct costs of producing your product or delivering your service (cost of goods sold). Net margin measures the profit remaining after subtracting all expenses, including operating costs, salaries, rent, marketing, taxes, interest, and depreciation. For instance, a bakery with $200,000 in revenue and $80,000 in ingredient and labor costs has a gross margin of 60%. But after paying $70,000 in rent, utilities, marketing, and other operating expenses plus $15,000 in taxes, the net profit is $35,000, giving a net margin of 17.5%. Both metrics are useful — gross margin shows production efficiency, while net margin shows overall business profitability.
Can profit margin be negative?
Yes, a negative profit margin means your business is losing money — costs exceed revenue. This is called operating at a loss. A negative margin can happen for several reasons: pricing products below cost (sometimes done intentionally as a loss leader or market entry strategy), unexpected increases in costs, low sales volume that cannot cover fixed costs, or inefficient operations. Some startups deliberately operate at negative margins while they scale, planning to become profitable once they achieve sufficient volume. However, sustained negative margins without a clear path to profitability are a serious warning sign. If your margin is negative, you need to urgently review your pricing, cost structure, and business model.