Profit Margin Calculator

Calculate your profit margin percentage from revenue and costs. Covers gross margin, net margin, and markup calculations.

Ad Space

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 Margin Mode:
Profit = Revenue − Cost
Profit Margin (%) = (Profit ÷ Revenue) × 100
Markup (%) = (Profit ÷ Cost) × 100
Revenue from Target Margin Mode:
Required Revenue = Cost ÷ (1 − Target Margin / 100)
Cost from Target Margin Mode:
Maximum Cost = Revenue × (1 − Target Margin / 100)
Margin ↔ Markup Relationship:
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.