Free Profit Margin Calculator
Calculate your gross profit margin from revenue and cost, or find the right selling price to hit your target margin.
Enter revenue and cost to calculate your gross profit margin. Switching modes keeps your entries.
Direct costs of delivering the product or service.
Your calculation
Enter revenue and cost to see your margin.
- Revenue
- —
- Cost
- —
- Gross profit
- —
- Gross margin
- —
Gross margin only. Calculations stay in this page and update as you type.
This calculator computes gross margin only and does not account for operating expenses, taxes, or other deductions from net profit.
What Is Gross Profit Margin?
Gross profit margin measures how much of each dollar of revenue is left after paying the direct costs of delivering your product or service. It is expressed as a percentage and calculated as:
Gross profit = Revenue − Cost of goods sold
Gross margin % = (Gross profit ÷ Revenue) × 100
For example, if you sell a service for $1,000 and it costs you $600 in direct labour and materials, your gross profit is $400 and your gross margin is 40%. This percentage shows how efficiently your business converts revenue into profit before overhead costs.
Margin vs Markup: What Is the Difference?
Margin is profit as a percentage of revenue (the selling price). Markup is profit as a percentage of cost. These are two ways of describing the same relationship between cost and selling price — but they give different numbers, which causes confusion.
Margin = (Selling price − Cost) ÷ Selling price × 100
Markup = (Selling price − Cost) ÷ Cost × 100
At a $60 cost and $100 selling price, the margin is 40% but the markup is 67%. If you say "I want 50% margin," you need a different selling price than if you say "I want 50% markup." The calculator uses margin throughout. To convert markup to margin: Margin = Markup ÷ (1 + Markup).
How to Price Services for a Target Margin
When quoting a fixed-price project, start with your estimated costs — time at your hourly rate, any subcontractors, and direct materials. Then use the formula to find a selling price that achieves your target margin:
Selling price = Cost ÷ (1 − Target margin)
At a $3,000 cost and a 40% target margin: $3,000 ÷ 0.6 = $5,000 selling price. The gross profit is $2,000. Use Find Selling Price mode in this calculator to do the arithmetic, then use our free quote generator to send a professional quote to your client.
Once the job is complete and the client has approved the quote, convert it into an invoice with our free invoice generator. Clear, well-structured invoices help you get paid on time, which matters as much as your margin.
Gross Margin Benchmarks by Business Type
Gross margin varies widely by industry. Software and consulting businesses often achieve margins above 60% because direct costs are low relative to revenue. Product businesses with significant materials costs may target 30–50%. Retail and construction often see margins of 20–40% at the gross level.
High gross margin does not guarantee profitability — you still need to cover overheads, taxes, and other fixed costs. Track gross margin over time and compare it against your pricing assumptions when quoting. If your actual margin is consistently lower than expected, revisit your cost estimates or pricing method.
Frequently Asked Questions
What is gross profit margin?
Gross profit margin is the percentage of revenue remaining after deducting direct costs (cost of goods sold or cost of services). It is calculated as: (Revenue − Cost) ÷ Revenue × 100. A 40% margin means 40 cents of every dollar of revenue is gross profit.
What is the difference between margin and markup?
Margin is profit as a percentage of revenue (selling price). Markup is profit as a percentage of cost. A 40% margin and a 67% markup both describe the same transaction where cost is $60 and selling price is $100. They are different numbers for the same profit.
What is a good profit margin for a freelancer?
Freelancers' gross margins are typically high — sometimes 70%+ — because direct costs are low. Net profit after overheads, taxes, and unpaid time is what matters most. Focus on setting a day or hourly rate that covers your costs and desired take-home pay.
How do I price a service to hit a 50% margin?
Use this formula: Selling price = Cost ÷ (1 − Margin). For a $500 cost and a 50% target margin: $500 ÷ 0.5 = $1,000 selling price. Use Find Selling Price mode in the calculator to do this automatically.
Is gross margin the same as gross profit?
No. Gross profit is the absolute dollar amount (Revenue − Cost). Gross margin is the percentage: Gross profit ÷ Revenue × 100. Both are useful — gross profit tells you the amount earned; gross margin lets you compare profitability across different revenue levels.
What costs go into cost of goods sold?
For product businesses: raw materials, direct labour, and manufacturing overhead. For service businesses: direct labour, subcontractors, and materials directly tied to delivering the service. Overheads like rent, software subscriptions, and marketing are excluded from gross margin calculations.
How does profit margin affect my invoice?
Understanding your margin helps you price projects correctly on your invoice. If you quote a fixed price, make sure your estimate of costs leaves sufficient margin. Use our free invoice generator to create professional invoices once your pricing is confirmed.