DEV Community

Farbod F.
Farbod F.

Posted on

Pricing freelance dev work: the math behind rate calculators

Pricing freelance dev work: the math behind rate calculators

Your freelance rate isn't a guess, a vibe, or what the last client offered. It's four inputs and one division. Run them honestly and most devs discover they've been undercharging by a third.

Every freelance developer I know set their first rate the same way: they heard what someone else charged, rounded it, and hoped. It feels like a confidence problem. It's actually an arithmetic problem — one with a formula simple enough to fit in a tweet, and consequences big enough to cost you tens of thousands a year.

The algorithm

A freelance hourly rate has exactly four inputs:

  1. Target annual take-home — what you need to live on, not what sounds nice
  2. Tax rate — you pay both halves now; gross up for it
  3. Annual business expenses — tooling, hardware, accounting, insurance, coworking
  4. Billable hours per year — not 40×52. Nobody bills that.
gross_needed  = target / (1 − tax_rate) + expenses
billable_hrs  = billable_hrs_per_week × working_weeks
hourly_rate   = gross_needed / billable_hrs
Enter fullscreen mode Exit fullscreen mode

That's the whole calculator. The interesting part is what happens when you plug in honest numbers instead of aspirational ones.

Worked example: $95,000 take-home

Say you're a developer who needs $95,000 a year to live on, in a ~30% effective tax situation, spending $8,000/year on the business (laptop amortized, IDE/services, accountant, a health plan you now buy yourself). And you're realistic about utilization: 22 billable hours a week across 46 weeks (the other 6 are admin, pitching, learning, and the gaps between contracts).

  • Gross needed: $95,000 / (1 − 0.30) + $8,000 = $143,714
  • Billable hours: 22 × 46 = 1,012
  • Rate: $143,714 / 1,012 = $142.01 → call it $142/hour

Now compare: $95,000 as a salary is $45.67/hour (÷ 2,080). The freelance equivalent is 3.11× that. That multiplier isn't greed — it's the entire freelance cost structure made visible: no paid leave, no employer insurance match, unpaid sales work, and income volatility you have to pre-fund yourself.

The rule of thumb that costs you 33%

The folk wisdom says "take your salary and divide by 1,000." For a $95k target that gives $95/hour. The real calculation says $142. The rule of thumb underestimates by a third — because it silently assumes ~1,000 billable hours at zero tax gross-up and zero expenses, which describes nobody.

Rules of thumb are fine for a sanity check. As a pricing method, this one donates ~$47 of every hour you work.

The lever nobody talks about: utilization

Here's the surprising part. Watch what happens to the rate when only the utilization input moves:

  • 22 h/week × 46 weeks = 1,012 h → $142/hour
  • 30 h/week × 48 weeks = 1,440 h → $99.80/hour

A realistic increase in billable hours cuts the required rate by $42.21/hour — nearly 30%. Utilization is by far the biggest lever in the formula: bigger than cutting expenses (halving $8k of expenses moves the rate by ~$4/hour) and bigger than most people expect from "working a bit more."

Which is exactly why the honest calculation matters: when a client pushes back on $142, you shouldn't just cave — you should know which input you're changing. Accepting $100/hour without changing anything else means you've implicitly committed to 30 billable hours a week, 48 weeks a year. Say that out loud before you agree to it.

Honest caveats

  • Taxes are personal. 30% is illustrative; yours depends on jurisdiction, deductions, and structure. The formula doesn't care — plug in your real number.
  • This prices your time, not your value. For specialized work with measurable client ROI, value-based pricing can (and should) exceed this floor. Treat the calculation as the minimum, not the target.
  • It ignores acquisition cost. Landing clients costs time and sometimes money; if 20% of your working hours go to business development, that's already inside the 22-hour billable assumption — make sure it is.
  • Rates are sticky. Raising rates on existing clients is harder than setting them right at the start. Run this before the next proposal, not after the next invoice.

Run your own numbers

Four inputs, one division — but your inputs are yours. Plug in your real target, your real tax situation, your real expenses, and your honest billable hours:

Freelance rate calculator — free, no signup, runs entirely in your browser.


Undercharging isn't humility. It's a math error — and math errors are fixable.

Top comments (1)

Collapse
 
keelsheet profile image
Keelsheet •

Nice that the formula adds expenses after the tax gross-up instead of before. Expenses are deductible, so tax only lands on the profit part, and plenty of rate calculators gross up everything.

A few US-specific notes on the tax input, since "you pay both halves now" hides most of it:

  1. The "both halves" part is self-employment tax: 15.3% on 92.35% of net profit, so about 14.1% of profit before any income tax. Add federal and state income tax and the all-in number usually lands somewhere around 25-35%. 30% is a fair middle guess, but a dev in a state with no income tax and one in California can end up far apart.
  2. Health insurance sits in a different bucket. If you're self-employed, your own premiums usually come off as an adjustment on Schedule 1, not as a Schedule C business expense. That lowers income tax but not self-employment tax, so if the health plan is a big chunk of the $8k, the real gross needed is a little higher than the formula says.
  3. The tax is due quarterly, not in April. At $142/hour, roughly $40 of every billed hour is the tax share (30% of what's left after the expense share). Moving that into a separate account when each payment lands, then paying estimates by Apr 15, Jun 15, Sep 15 and Jan 15, is what keeps the underpayment penalty away.
  4. First-year shortcut if you're leaving a salaried job: you're penalty-safe if you pay in at least 100% of last year's total tax (110% if your AGI was over $150k), split across the quarters, and withholding from the salaried part of the year counts toward it. Last year's tax is a known number, so you can pay that and settle up in April even while the freelance income is still lumpy.