A profit margin calculator helps freelancers and agencies see whether a service, project, or retainer earns enough after delivery costs and overhead. This guide provides the formulas, a repeatable worksheet, and worked examples for hourly work, retainers, and subcontracted projects.
Overview
Profit margin shows how much of your revenue remains after specified costs. It is expressed as a percentage, making it easier to compare different projects even when their prices vary.
The basic gross profit margin formula is:
Gross profit margin = (Revenue - Direct costs) / Revenue × 100
Direct costs are expenses that exist because you deliver a particular service. Depending on your business, they may include subcontractor payments, project-specific software, transaction fees, stock assets, travel, or temporary labor.
To understand the profitability of the business as a whole, include overhead:
Net operating margin = (Revenue - Direct costs - Allocated overhead) / Revenue × 100
Overhead includes costs that support the business but are not tied to one specific project, such as general software subscriptions, insurance, accounting, marketing, office costs, and administrative time.
These calculations should normally exclude VAT, sales tax, or similar amounts collected on behalf of a tax authority. Treating those amounts as revenue can make a project appear more profitable than it is. Income tax and corporation tax are also usually reviewed separately because the applicable treatment depends on your business structure and location.
A useful freelance profit calculator should show at least two views: the cash result after expenses and the economic result after assigning a reasonable value to the owner's delivery and administrative time. If you omit your own labor, a project can look profitable while paying you less than your intended rate.
How to estimate your margin
Use the following worksheet for each quote, completed project, or monthly service line.
- Record revenue. Use the fee actually charged for the service, excluding VAT or sales tax where applicable. For a retainer, use the monthly fee or the period you are reviewing.
- List direct delivery costs. Include subcontractors, project-specific tools, payment processing, travel, materials, and other costs that would disappear if the project were cancelled.
- Calculate gross profit. Subtract direct costs from revenue.
- Calculate gross margin. Divide gross profit by revenue and multiply by 100.
- Allocate overhead. Choose a consistent method, such as assigning a monthly overhead amount across expected billable projects or using a share of revenue.
- Value your own time. Track delivery, calls, revisions, sales, project management, and administration. Apply the internal hourly cost or target compensation you want the business to support.
- Calculate operating margin. Subtract direct costs and allocated overhead from revenue, then divide by revenue.
For a fixed-price service, you can also work backward from a desired margin:
Required price = Total cost / (1 - Target margin)
For example, if total delivery and allocated overhead are 2,000 and you want a 40% margin, the required price is 2,000 / 0.60, or 3,333.33. This is different from adding a 40% markup. A markup calculator applies the percentage to cost, while a margin target measures profit as a percentage of the final selling price.
For a fixed-price quote, estimate the hours and risks before setting the fee. The freelance project rate calculator guide explains how to turn an hourly rate into a fixed-price quote while allowing for non-billable work and scope uncertainty.
Inputs and assumptions
A calculation is only as useful as its inputs. Keep the assumptions visible rather than hiding them in a spreadsheet.
Revenue
Enter the agreed service fee, recurring retainer amount, or expected billable revenue for the period. If a client receives a discount, use the discounted amount. If the work may expand, calculate the original scope separately from likely change orders.
Direct costs
Separate predictable costs from estimates. A subcontractor invoice is usually easy to record; revision risk, rush work, and currency changes may require a conservative allowance. Do not count the same cost twice—for example, a project tool should appear either as a direct project cost or in overhead, not both.
Your time and internal labor
For a solo business, distinguish between money leaving the bank account and the cost of your time. A cash margin can be useful for short-term cash planning, but an economic margin is better for deciding whether to continue offering a service. Include unpaid discovery, proposals, client calls, project management, revisions, invoicing, and collections where they are material.
Overhead allocation
Add monthly business overhead and allocate it consistently. One simple approach is to divide monthly overhead by expected monthly revenue. Another is to assign overhead by delivery hours. The first is easier for recurring reporting; the second can be more informative when projects use very different amounts of capacity.
Taxes and owner drawings
Keep tax assumptions separate unless you are deliberately building an after-tax model. Owner drawings, dividends, or personal withdrawals are not automatically operating costs, although a target owner salary can be included when assessing the sustainable cost of running the business. Ask a qualified adviser about local tax treatment when the result affects a filing or major pricing decision.
Worked examples
Hourly freelance work
A freelancer bills 32 hours at 120 per hour, producing revenue of 3,840. Direct software and payment costs total 240. Gross profit is 3,600, so the gross margin is 3,600 / 3,840 × 100, or 93.8%.
The freelancer also allocates 900 for administration, marketing, insurance, and other overhead. Operating profit is 2,700, producing an operating margin of 70.3%. If the freelancer spent another 12 unpaid hours on sales, calls, and administration, the effective return on total time would be lower than the billed-hours calculation suggests.
Monthly retainer
An agency charges 4,500 for a monthly retainer. Direct delivery labor costs 2,200, a specialist subcontractor costs 900, and project-specific tools cost 150. Total direct costs are 3,250.
Gross profit is 1,250, giving a gross margin of 27.8%. After allocating 600 of general overhead, operating profit is 650 and operating margin is 14.4%. This view may prompt a scope review even if the retainer generates steady revenue.
Fixed-price project with subcontracted work
A studio quotes 6,000 for a project. The subcontractor costs 1,800, project tools cost 120, and payment fees are estimated at 180. Direct costs total 2,100, leaving gross profit of 3,900 and a gross margin of 65%.
After assigning 1,000 of overhead and internal project-management capacity, operating profit is 2,900. The operating margin is approximately 48.3%. If the project expands by 20 hours without a change order, recalculate the result using the additional internal labor cost. A strong initial margin can decline quickly when scope is not controlled.
When to recalculate
Revisit your agency profit margin calculator or freelance pricing worksheet whenever the underlying inputs change. At minimum, review margins:
- Before renewing or repricing a retainer.
- Before accepting a project with unusual scope, urgency, or subcontracting needs.
- After changing your hourly rate, contractor rates, or software stack.
- When overhead rises or expected billable capacity falls.
- After completing a project, using actual hours and costs rather than estimates.
- When payment terms, discounts, currency exposure, or transaction fees change.
- During a monthly or quarterly pricing review.
Use a simple review routine: compare quoted margin with actual margin, identify the largest variance, and update the assumption that caused it. If the gap came from untracked meetings or administration, record that time in the next estimate. The meeting cost calculator guide can help quantify team time that is often left out of project costs.
Finally, connect the calculation to your operating workflow. Set the price, expected hours, direct costs, and payment terms before sending a quote; record actuals as work progresses; and retain the final result for the next similar project. Pairing accurate margin estimates with a clear freelance invoice and payment workflow helps separate profitable sales from revenue that is merely delayed or difficult to collect.
Margin is not a permanent label for a service. It is a current view based on current assumptions. Keep the worksheet updated, review both gross and operating margin, and use the results to adjust scope, pricing, capacity, or delivery before a weak project becomes a recurring pattern.