Profit Margin Calculator
Calculate gross profit, profit margin and markup using your revenue or selling price and total cost. Use the calculator to evaluate pricing, compare scenarios and better understand how much profit remains after direct costs.
Free • Instant Results • No Signup Required
Business Profitability Calculator
Enter your business revenue, cost of goods sold, and operating expenses below. The calculator automatically shows how much of your revenue remains as gross profit and net profit, along with the corresponding profit-margin percentages and markup.
Your numbers
Total sales or revenue for the period.
Direct costs associated with producing or delivering what you sold.
Business expenses not included in COGS, such as rent, payroll, software, utilities, insurance, and marketing.
Your calculations stay in your browser. No signup required.
Business Profitability Summary
Revenue Breakdown
Gross margin shows what remains after direct production costs. Net margin shows what remains as profit after direct costs and operating expenses. Markup shows profit as a percentage of cost rather than selling price.
Opens your browser's print dialog — choose "Save as PDF" to download.
Target Profit Margin Calculator
Calculate the selling price needed to achieve a desired gross profit margin. Enter your cost and the profit margin you want to reach.
Pricing inputs
The cost of the product or service you are pricing.
The gross profit margin you want to achieve. Must be less than 100%.
Required price
Profit margin and markup are not the same. A 40% profit margin on a $60 cost gives a $100 selling price — which is a 66.67% markup. Margin is based on selling price; markup is based on cost.
How it works
Gross Profit
Revenue minus the direct cost of producing or delivering your products or services.
Gross Profit Margin
The percentage of revenue remaining after direct costs.
Net Profit
The amount remaining after COGS and operating expenses are deducted from revenue.
Net Profit Margin
The percentage of revenue remaining as profit after the included costs and operating expenses.
Markup on COGS
Profit expressed as a percentage of cost, rather than selling price.
Operating Expense Ratio
Total operating expenses expressed as a percentage of revenue.
How to calculate profit margin
The core profit margin formula is simple: Profit Margin = (Profit ÷ Revenue) × 100. Profit margin expresses profit as a percentage of revenue, so it tells you how many cents of profit you keep from every dollar of sales.
Which profit figure you plug in determines which margin you get. Use gross profit (revenue minus direct costs) for gross profit margin, or net profit (revenue minus all included costs and operating expenses) for net profit margin. Both are percentages, but they answer different questions about your business.
Gross profit margin formula
Gross Profit = Revenue − COGS
Gross Profit Margin = (Gross Profit ÷ Revenue) × 100
Worked example: a business earns $50,000 in revenue and has $20,000 in cost of goods sold. Gross profit is $50,000 − $20,000 = $30,000. Gross profit margin is ($30,000 ÷ $50,000) × 100 = 60%. This means 60% of revenue remains after the direct cost of what was sold.
Net profit margin formula
Net Profit = Revenue − COGS − Operating Expenses
Net Profit Margin = (Net Profit ÷ Revenue) × 100
Worked example: using the same $50,000 revenue and $20,000 COGS, the business also has $15,000 in operating expenses. Net profit is $50,000 − $20,000 − $15,000 = $15,000. Net profit margin is ($15,000 ÷ $50,000) × 100 = 30%. This shows what remains as profit after all included costs.
Profit margin vs. markup
Profit margin and markup are often confused, but they use different bases. Profit margin measures profit as a percentage of the selling price. Markup measures profit as a percentage of cost.
| Metric | Compared Against | Formula | Example |
|---|---|---|---|
| Gross Profit | Revenue minus Cost | Revenue − Cost | $400 |
| Profit Margin | Profit compared with Revenue | Profit ÷ Revenue | 40% |
| Markup | Profit compared with Cost | Profit ÷ Cost | 66.67% |
A 40% profit margin does not mean a 40% markup. Using a cost of $600 and a selling price of $1,000 produces a 40% margin and a 66.67% markup. This distinction is especially important when setting prices.
Numerical example: an item costs $60 and sells for $100. The profit is $40. The profit margin is ($40 ÷ $100) × 100 = 40%. The markup is ($40 ÷ $60) × 100 = 66.67%. Same dollar profit, two different percentages — because margin divides by the larger selling price and markup divides by the smaller cost.
This matters for pricing. If you apply a "40% markup" to a $60 cost, you get an $84 selling price. If you want a "40% profit margin" on a $60 cost, you need a $100 selling price. Mixing the two up is one of the most common pricing mistakes small businesses make.
Margin and markup examples
Markup and margin increase differently because they use different denominators. The table below shows approximate equivalent values.
| Markup | Equivalent Margin |
|---|---|
| 10% | 9.09% |
| 20% | 16.67% |
| 25% | 20.00% |
| 33.33% | 25.00% |
| 50% | 33.33% |
| 66.67% | 40.00% |
| 100% | 50.00% |
| 150% | 60.00% |
| 200% | 66.67% |
How to calculate a selling price from a target margin
If you know your cost and desired profit margin, selling price can be calculated using:
Selling Price = Cost ÷ (1 − Target Margin)
Target margin must be entered as a decimal. Example: cost = $600, target margin = 40%. Selling price = $600 ÷ (1 − 0.40) = $600 ÷ 0.60 = $1,000.
Note that simply adding 40% to $600 would produce $840, which is a 40% markup — not a 40% margin. This is an important distinction when pricing from a target margin.
How to calculate a selling price from markup
Selling Price = Cost × (1 + Markup)
Example: cost = $600, markup = 50%. Selling price = $600 × 1.50 = $900. Gross profit = $900 − $600 = $300. Profit margin = ($300 ÷ $900) × 100 = approximately 33.33%.
What is profit margin?
Profit margin expresses profit as a percentage of revenue. It can help a business evaluate pricing, products, services, jobs, customers, and projects, and understand how changes in costs affect profitability. There is no single universally appropriate margin — appropriate margins vary by industry, business model, overhead, and pricing strategy.
What is gross profit?
Gross Profit = Revenue − Direct Cost
Gross profit is different from net profit. Gross profit evaluates revenue after direct costs only. Net profit accounts for additional business expenses such as payroll, rent, insurance, marketing, software, utilities, taxes, interest, and administrative expenses. The calculator's gross-profit result is not net income.
Gross profit margin vs. net profit margin
Gross margin focuses primarily on revenue and direct cost. Net margin accounts for broader operating and other expenses. A business can have a strong gross margin but a much lower net margin once overhead is included. This calculator is not a full P&L calculator — for ongoing profit and loss tracking, use a dedicated template.
Using profit margin when setting prices
Businesses can use margin calculations to compare possible selling prices. Factors beyond direct cost include overhead, labor, payment processing fees, shipping, marketing, returns, discounts, taxes, competitive pricing, and customer demand. This calculator provides mathematical outputs, not a recommended price.
Profit margin example for a service business
Customer price: $2,500. Direct materials: $600. Direct labor: $700. Other direct job costs: $200. Total direct cost: $1,500. Gross profit: $1,000. Gross margin: 40%. Markup: approximately 66.67%. Overhead and other operating expenses are not included unless entered as part of cost.
Profit margin example for a product
Product selling price: $80. Product cost: $48. Gross profit: $32. Profit margin: 40%. Markup: approximately 66.67%. If product cost rises while selling price stays unchanged, margin shrinks.
What can reduce profit margin?
Higher material costs, higher labor costs, supplier price increases, discounting, shipping costs, payment-processing fees, returns or refunds, price competition, and failure to update selling prices when costs increase can all reduce profit margin.
What does a negative profit margin mean?
When direct cost exceeds revenue, gross profit becomes negative. Example: revenue = $500, cost = $600, gross profit = −$100, gross margin = −20%. This indicates a loss at the level represented by the inputs and should not automatically be interpreted as the entire company's net loss.
Who can use the profit margin calculator?
Small businesses, contractors, consultants, retail businesses, ecommerce businesses, restaurants, freelancers, agencies, service businesses, landscapers, cleaning companies, HVAC businesses, plumbers, electricians, roofers, handyman businesses, and startups can all use this calculator to evaluate pricing and profitability.
Need to track profit over time?
A calculator is useful for quick scenarios, while spreadsheets are useful for ongoing financial tracking. Business Tools Lab provides free Excel templates for that purpose.
Profit margin example
Using the example built into the calculator above — revenue of $100,000, COGS of $40,000, and operating expenses of $35,000:
- Gross Profit: $60,000 (Revenue − COGS)
- Gross Margin: 60% ($60,000 ÷ $100,000)
- Net Profit: $25,000 ($100,000 − $40,000 − $35,000)
- Net Margin: 25% ($25,000 ÷ $100,000)
- Markup on COGS: 150% ($60,000 ÷ $40,000)
In plain terms: of the $100,000 earned, $60,000 remains after direct costs (a 60% gross margin). After $35,000 of operating expenses, $25,000 remains as net profit (a 25% net margin). The $60,000 of gross profit is 150% of the $40,000 cost — that is the markup.
How to use the profit margin calculator
- Enter your total revenue for the period.
- Enter your cost of goods sold (direct costs of producing or delivering what you sold).
- Enter your operating expenses (rent, payroll, software, utilities, marketing, etc.).
- Review your gross profit and gross margin to see what remains after direct costs.
- Review your net profit and net margin to see what remains after operating expenses.
- Review your markup to see profit as a percentage of cost.
Use the Target Profit Margin Calculator above to work backwards from a desired margin to the selling price you would need to charge.
Why profit margin matters for small businesses
Profit-margin analysis helps a small business evaluate several areas at once. It shows whether pricing is high enough to cover costs, whether direct costs are eating too much of revenue, and whether operating expenses are sustainable relative to sales.
Comparing margins across products and services can reveal which ones are actually profitable and which ones look busy but contribute little. Over time, tracking margins is a simple way to monitor business performance and overall profitability without needing complex accounting reports.
There is no single universally "good" profit margin. Margins vary widely by industry, business model, company size, expense structure, accounting practices, and other factors. A healthy margin for a consulting firm and a healthy margin for a grocery store look very different. Use margins to compare against your own past performance and your industry's norms rather than against an arbitrary target.
For more on organizing the technology side of your business, see our Software Budget Calculator or browse Business Tools Lab guides on software selection and operations.
Profit margin calculator FAQs
How do I calculate profit margin?+
Divide profit by revenue and multiply by 100. Profit Margin = (Profit ÷ Revenue) × 100. The type of profit you use (gross or net) determines whether you get gross profit margin or net profit margin.
What is the profit margin formula?+
Profit Margin % = (Profit ÷ Revenue) × 100. For gross profit margin, use gross profit (Revenue − COGS). For net profit margin, use net profit (Revenue − COGS − Operating Expenses).
What is gross profit?+
Gross profit is revenue minus the direct cost of producing or delivering your products or services. Gross Profit = Revenue − Cost. It does not include operating expenses such as rent, payroll, or marketing.
What is the difference between profit and profit margin?+
Profit is a dollar amount — the money remaining after costs. Profit margin is a percentage — that profit expressed relative to revenue. A $400 profit on $1,000 of revenue is a 40% profit margin.
What is markup?+
Markup measures profit as a percentage of cost. Markup % = (Profit ÷ Cost) × 100. It shows how much you are adding to your cost to arrive at a selling price.
What is the difference between margin and markup?+
Profit margin measures profit as a percentage of the selling price (revenue). Markup measures profit as a percentage of the cost. The same dollar profit produces a higher markup percentage than margin percentage because cost is smaller than selling price.
Is a 50% markup the same as a 50% margin?+
No. A 50% markup on a $60 cost produces a $90 selling price, which is a 33.33% profit margin. A 50% profit margin on a $60 cost requires a $120 selling price. They are calculated differently and are not interchangeable.
How do I calculate selling price from a target margin?+
Use the formula Selling Price = Cost ÷ (1 − Target Margin). Convert the desired margin from a percentage to a decimal first. A 40% desired margin on a $60 cost gives $60 ÷ 0.60 = $100.00.
How do I calculate selling price from markup?+
Use the formula Selling Price = Cost × (1 + Markup). A 50% markup on a $60 cost gives $60 × 1.50 = $90.00. The resulting profit margin on that sale is approximately 33.33%.
Can profit margin be negative?+
Yes. When costs exceed revenue, profit is negative and the profit margin is negative. A negative margin indicates a loss on the activity being measured, not necessarily that the entire business is unprofitable.
What happens if my cost is higher than my selling price?+
Gross profit becomes negative and the profit margin is negative. For example, revenue of $500 and cost of $600 produces a gross profit of −$100 and a gross margin of −20%.
What is the difference between gross margin and net margin?+
Gross margin uses only revenue and direct cost (COGS). Net margin also deducts operating expenses. A business can have a strong gross margin but a much lower net margin once overhead is included.
Does this calculator include operating expenses?+
The basic Profit Margin Calculator focuses on revenue and direct cost to show gross profit, gross margin, and markup. A detailed mode is available to enter operating expenses and view net profit and net margin.
Can service businesses use this calculator?+
Yes. Service businesses can enter the customer price as revenue and direct labor, materials, and other direct job costs as cost to calculate gross profit, margin, and markup on a job or project.
Can contractors use this calculator?+
Yes. Contractors can use it to evaluate pricing on a job by entering the contract price as revenue and direct materials, labor, and subcontractor costs as cost to see the gross margin and markup on that job.
Is the Profit Margin Calculator free?+
Yes. The Profit Margin Calculator is free to use and does not require an account, email address, or payment.
Do I need to create an account?+
No. The calculator runs entirely in your browser with no signup, email, or account required.
Are the results financial advice?+
No. This calculator is provided for general informational and educational purposes only. Results are estimates based on the information entered and should not be considered accounting, tax, legal, investment, or financial advice.
Explore More Free Business Tools
Continue planning with other free Business Tools Lab resources.
This calculator is provided for general informational and educational purposes only. Results are estimates based on the information entered and should not be considered accounting, tax, legal, investment, or financial advice.
Continue Exploring
Other free Business Tools Lab resources to help you plan and evaluate software.
Business Profitability Report
Report Generated: November 21, 2026
PROFITABILITY SUMMARY
| Total Revenue | $0.00 |
| Cost of Goods Sold | $0.00 |
| Gross Profit | $0.00 |
| Gross Profit Margin | 0.00% |
| Total Operating Expenses | $0.00 |
| Net Profit | $0.00 |
| Net Profit Margin | 0.00% |
| Markup | 0.00% |
| Operating Expense Ratio | 0.00% |
FORMULAS USED
- Gross Profit = Revenue − COGS
- Gross Margin = Gross Profit ÷ Revenue × 100
- Net Profit = Revenue − COGS − Operating Expenses
- Net Margin = Net Profit ÷ Revenue × 100
- Markup = Gross Profit ÷ COGS × 100
- Operating Expense Ratio = Operating Expenses ÷ Revenue × 100
This report is provided for general informational and educational purposes only. Results are estimates based on the information entered and should not be considered accounting, tax, legal, investment, or financial advice.