A profit margin calculator helps you see whether your freelance work or service business is earning enough after delivery costs and operating expenses. This guide explains gross margin, net margin, markup, and project profit with reusable formulas and worked examples for hourly services, fixed-fee projects, and subscriptions.
Overview
Revenue is the money a client or customer pays. Profit is what remains after the costs required to deliver the work and operate the business. Profit margin expresses that profit as a percentage of revenue, making it easier to compare projects, months, and service lines with different prices.
For a service business, the most useful starting measures are:
- Project profit: revenue from a job minus the costs directly associated with that job.
- Gross profit: revenue minus direct delivery costs across a period.
- Gross margin: gross profit divided by revenue.
- Net profit: revenue minus direct costs and operating overhead.
- Net margin: net profit divided by revenue.
These measures answer different questions. Gross margin shows how efficiently you deliver the service. Net margin shows what the business keeps after broader costs such as software, insurance, accounting, marketing, rent, payment fees, and other overhead. A project may have a strong gross margin but produce a weak net result if it consumes substantial administration or sales time.
Do not confuse margin with markup. Margin compares profit with the selling price; markup compares profit with the cost. That difference matters when setting prices.
| Measure | Formula | What it tells you |
|---|---|---|
| Gross profit | Revenue − direct costs | Money left after delivering the work |
| Gross margin | Gross profit ÷ revenue × 100 | Share of revenue left after direct costs |
| Net profit | Revenue − direct costs − overhead | Money left after operating the business |
| Net margin | Net profit ÷ revenue × 100 | Share of revenue retained after all included costs |
| Markup | Profit ÷ cost × 100 | Profit added on top of the cost |
How to estimate
You can build a simple profit margin calculator in a spreadsheet, accounting tool, or notebook. Use the same period and cost definitions throughout the calculation.
1. Record revenue
Start with the amount earned from the work. For a project, use the agreed fee or collected revenue according to the purpose of your review. For a monthly business review, use the revenue assigned to that month. Keep sales tax or VAT separate from revenue when it is collected on behalf of a tax authority; treatment can vary by jurisdiction and accounting method.
2. Identify direct delivery costs
Direct costs exist because a particular job or service was delivered. Examples include subcontractor payments, project-specific materials, paid assets, transaction fees tied to a sale, travel required for one client, and delivery labor.
For your own time, choose a consistent approach. You can treat owner compensation as a direct delivery cost when measuring the true cost of fulfilling a project, or analyze it separately when reviewing accounting profit. The important point is to label the method clearly and use it consistently.
3. Calculate gross profit and gross margin
Use these formulas:
Gross profit = revenue − direct delivery costs
Gross margin = gross profit ÷ revenue × 100
For example, if a project earns 2,000 and has 500 in direct costs, gross profit is 1,500 and gross margin is 75%.
4. Allocate overhead
Overhead supports the business but may not belong to one specific project. List recurring costs such as software subscriptions, professional fees, insurance, internet, workspace, advertising, training, and administrative time. To estimate project or service profitability, allocate a reasonable share of those costs rather than assigning the entire monthly bill to one job.
One simple allocation method is to divide monthly overhead by expected billable projects, billable hours, or monthly revenue. Each method has limitations, so choose the one that best reflects how your business operates. Revenue-based allocation is often easy for a first pass; time-based allocation can be more informative when projects vary greatly in complexity.
5. Calculate net profit and net margin
Net profit = revenue − direct delivery costs − allocated overhead
Net margin = net profit ÷ revenue × 100
If the result is negative, the margin is negative. That is not a calculation error: it indicates that the included costs exceed revenue for the period or project.
For a broader pricing review, combine this calculation with a freelancer pricing and project estimation checklist. If the issue is the amount of work required to cover fixed costs, use a freelancer break-even calculator as a companion tool.
Inputs and assumptions
A calculator is only as useful as its inputs. Before calculating, write down the assumptions behind each number.
- Revenue basis: State whether you are using quoted, invoiced, or collected revenue.
- Tax treatment: Keep VAT, sales tax, and similar amounts separate when they are not business income, and confirm the treatment used by your bookkeeping system.
- Time value: Include research, revisions, calls, project management, proposals, and administration when estimating the labor cost of a service.
- Owner time: Decide whether your own delivery and management time is valued at a target hourly rate. Unpaid owner time can make a project appear more profitable than it really is.
- Overhead allocation: Use a repeatable rule, such as overhead per billable hour or overhead as a share of revenue.
- One-time costs: Mark unusual purchases separately so they do not distort an ordinary month, while still showing their effect on cash and annual profitability.
- Scope changes: Track extra requests, delays, and additional revisions rather than leaving them hidden inside the original project cost.
A practical template looks like this:
- Revenue: ______
- Direct delivery labor: ______
- Direct contractors or materials: ______
- Project-specific fees: ______
- Gross profit: revenue − direct costs = ______
- Gross margin: gross profit ÷ revenue × 100 = ______%
- Allocated overhead: ______
- Net profit: gross profit − allocated overhead = ______
- Net margin: net profit ÷ revenue × 100 = ______%
Keep a separate record of unpaid invoices and cash timing. Profitability and cash flow are related but not identical. A profitable project can still create pressure if the invoice is late or expenses must be paid before the client pays. A cash flow forecast template can help you review that separate risk.
Worked examples
Hourly service
A consultant works 20 billable hours at 100 per hour, creating revenue of 2,000. The consultant estimates 300 of direct delivery costs and assigns 400 of overhead to the work.
- Gross profit: 2,000 − 300 = 1,700
- Gross margin: 1,700 ÷ 2,000 × 100 = 85%
- Net profit: 1,700 − 400 = 1,300
- Net margin: 1,300 ÷ 2,000 × 100 = 65%
If the consultant spent another six hours on sales, scheduling, and revisions, the effective return per total hour would be lower than the advertised hourly rate suggests. This is why a time-tracking review should include both billable and non-billable work. The freelance time-tracking spreadsheet can support that review.
Fixed-fee project
A designer charges a fixed fee of 3,600. Direct contractor and asset costs total 600. The designer records 30 hours of personal delivery time and values that time at 60 per hour, or 1,800. Allocated overhead is 500.
- Total direct costs: 600 + 1,800 = 2,400
- Gross profit: 3,600 − 2,400 = 1,200
- Gross margin: 1,200 ÷ 3,600 × 100 = 33.3%
- Net profit: 1,200 − 500 = 700
- Net margin: 700 ÷ 3,600 × 100 = 19.4%
The project may have looked attractive when judged only by the invoice value. Including the designer's time and overhead reveals a smaller but more realistic return. If the next project has similar scope, the designer can adjust the fee, reduce included revisions, or improve the delivery process.
Subscription service
A small business has 10 monthly subscribers paying 250 each, for monthly revenue of 2,500. Direct support and platform costs total 700. Monthly overhead allocated to the service is 900.
- Gross profit: 2,500 − 700 = 1,800
- Gross margin: 1,800 ÷ 2,500 × 100 = 72%
- Net profit: 1,800 − 900 = 900
- Net margin: 900 ÷ 2,500 × 100 = 36%
For subscriptions, review the calculation alongside cancellations, discounts, support time, and onboarding effort. A new customer may require more time than an established customer, so a single average margin can hide differences between cohorts or plan types.
Markup versus margin
Suppose total cost is 800 and the desired profit is 200. The selling price is 1,000. The markup is 200 ÷ 800 × 100, or 25%. The margin is 200 ÷ 1,000 × 100, or 20%. If you want a 25% margin, you cannot simply add 25% to cost; the required selling price is calculated as cost ÷ (1 − target margin), subject to your currency and tax assumptions. Use a markup calculator and a margin calculator for their intended purposes rather than treating the terms as interchangeable.
When to recalculate
Recalculate profitability after every completed project when the work is unusual or strategically important, and review service-level margins at least during each month-end or quarterly planning cycle. Revisit the model sooner when any major input changes.
- Your prices, discounts, or packaging change.
- Delivery time increases because of revisions, meetings, or coordination.
- Software, contractor, payment, or workspace costs change.
- Your billable capacity changes because of leave, study, caregiving, or business development.
- You add a subscription, retainer, or new service line.
- Tax, invoicing, or bookkeeping treatment changes; confirm local requirements with a qualified professional.
- A project repeatedly produces lower profit than the estimate.
Use the same spreadsheet or calculator format each time. Compare estimated margin with actual margin, then identify the largest variance: hours, scope, price, direct costs, or overhead. Take one concrete action, such as revising the estimate, adding a change-order rule, raising a package price, removing an underused tool, or narrowing the service scope.
For a complete review, pair margin analysis with a clear invoice process using the small business invoice and VAT checklist. Then record the result in a weekly or monthly review, alongside pipeline and cash flow. A profit margin calculator is most valuable when it becomes part of the operating rhythm: estimate before accepting work, measure after delivery, and update the assumptions whenever the business changes.