Profit margin is the share of revenue left after the costs you count. On a $12,000 fixed-price project, 120 hours at an internal cost of $60 an hour leave $4,800, a 40% project margin. Spend 20 more hours for the same fee and the margin falls to 30%.
Which costs belong in the calculator?
Use the fee you expect to earn for the work. For an employee, use the hourly cost to your business. If you enter the rate you charge the client, you will treat part of your revenue as a cost. Add subcontractors, materials, or other direct expenses in the last field. For a simple revenue-and-cost calculation, set hours to zero and enter your total cost there.
What the result means depends on the costs you include. A project can cover its team and contractors while contributing too little to cover rent, sales, and administration. To estimate the margin after overhead, include a consistent allocation. Label the result so the next person knows which version you used.
How to calculate profit margin by hand
Margin (%) = (revenue − cost) ÷ revenue × 100. In the opening example, $7,200 goes to the work and $4,800 remains. Divide $4,800 by $12,000 to get 40%. If the cost rises above the fee, the result is negative. At zero revenue the percentage is undefined.
Markup answers a different question. It divides profit by cost. At a $120 selling price and an $80 cost, the profit is $40. The margin is 33.3% and the markup is 50%. This distinction matters when quoting. To earn a 40% margin on $7,200 of work, divide $7,200 by 0.60 to get a $12,000 fee.
How many extra hours can this job absorb?
Suppose you need to keep a 30% project margin. On a $12,000 fee, your total cost allowance is $8,400. At $60 per hour and with no other direct costs, that buys 140 hours. At hour 120 you can still offer 20 hours of revisions. At hour 140 an additional revision needs a decision about scope, price, or margin.
If different people cost different amounts, calculate each person's hours times their own hourly cost. Add the results and enter the total as direct costs. A simple average of two rates can give the wrong answer when one person works most of the hours.
When you need this number every month
thegoodcode built a back office on Open Mercato that connects time entries to projects, records costs, and gives project managers an approval step. Its month-close view shows the revenue, cost, and margin behind the figure. If you already do this reconciliation in a spreadsheet, the screenshots show which steps the agency chose to bring into one system. See how thegoodcode tracks margin on every project.