InvoiceAgent
PricingApril 30, 2026·8 min read

How to Calculate Your Freelance Hourly Rate (With Formula)

Most freelancers undercharge because they treat their hourly rate like a salary divided by 40 hours. That math is wrong. Here's the formula that accounts for the unbilled hours, the business expenses, and the buffer you actually need to live on what you earn.

Most freelancers set their hourly rate the wrong way. They look at the salary they used to earn — say $80,000 — divide by 2,080 working hours in a year, get $38, round it to "$40 an hour," and start sending invoices. Six months later they're working 60-hour weeks and their bank account looks worse than it did when they had a job.

The math is wrong because freelancing isn't a salary divided by hours. You don't bill 40 hours a week — you bill 20, maybe 25 if you're disciplined. You pay your own taxes, your own health insurance, your own retirement contributions, your own software stack, and your own time when a client ghosts mid-project. The hourly rate that replaces an $80,000 salary isn't $40. It's closer to $90.

This article walks through the actual formula, the assumptions that go into each variable, and three worked examples for designers, developers, and consultants. By the end you'll have a defensible hourly rate you can quote without flinching — and a paper trail showing exactly why it's not negotiable.

Why a Bad Hourly Rate Compounds

Setting your rate too low isn't just a one-month problem. It compounds in three quiet ways:

  • You attract the wrong clients. Price is a signal. A $35/hour developer attracts clients who shop on price; a $120/hour developer attracts clients who shop on outcomes. The first group will negotiate every line item; the second group will refer their colleagues to you.
  • You can't afford to stop selling. Underpriced freelancers spend 20+ hours a week on prospecting because they're always one churned client away from a cash crunch. That's 20 hours that aren't being invested in skill-building, marketing assets, or rest.
  • Raising rates becomes harder later. Going from $45 to $90 with an existing client is a much harder conversation than starting at $90 in the first place. Many freelancers stay underpriced for years because the social cost of a 100% rate hike feels worse than the financial cost of staying put.

Doing the math right the first time isn't optional — it's the difference between a sustainable practice and a slow burnout.

The Freelance Hourly Rate Formula

The formula has four inputs and one output:

Hourly Rate = (Target Salary + Business Expenses + Buffer) ÷ Billable Hours

Each input deserves a careful look — most rate calculators online get at least one of them wrong.

Input 1: Target Salary

This is what you actually want to take home in a year, after taxes and after benefits you'd otherwise get from an employer. If you earned $80,000 at your last job with health insurance, retirement match, and paid time off, your freelance equivalent is more like $110,000–$120,000 — because you now have to pay for those benefits yourself.

A practical adjustment table for US freelancers (numbers vary by country and state):

  • Self-employment tax: +15.3% on net earnings (Social Security + Medicare, both halves now on you).
  • Health insurance: +$5,000–$15,000 per year for individual coverage; more for family plans.
  • Retirement contributions: +$10,000–$20,000 per year if you want to match what a typical employer 401(k) would have provided.
  • Paid time off: +5–8% — you don't get paid for the 3 weeks you take off, so you need to earn it during the other 49.

If you don't gross-up your target salary by these factors, you're not freelancing — you're paying your former employer's HR department out of your own pocket.

Input 2: Business Expenses

The real running cost of being a freelancer. Most people drastically underestimate this — it's not just your laptop. A baseline annual budget for a software-tooled solo freelancer:

  • Software subscriptions: $1,500–$4,000 (design tools, dev tools, cloud hosting, AI assistants, password manager, accounting software, CRM).
  • Hardware and home office: $1,500–$3,000 amortized (laptop refresh every 3 years, monitor, chair, desk, peripherals).
  • Internet and phone: $1,200–$2,000.
  • Professional services: $1,500–$5,000 (accountant, lawyer if you incorporate, occasional contractor help).
  • Marketing and business development: $1,000–$5,000 (website hosting, paid newsletters, conference tickets, courses).
  • Insurance: $500–$2,000 (general liability, professional indemnity, equipment).
  • Banking, payment processing, and FX: 1–3% of gross revenue (PayPal/Stripe fees, wire fees, currency conversion losses).

Realistic total: $8,000–$20,000 per year. Use the lower end if you're just starting out and the higher end if you've been freelancing for 3+ years and have a real tool stack.

Input 3: Buffer

The variable nobody talks about. Freelance income is lumpy. Clients delay payment. Projects get cancelled. You get sick. The economy hiccups. A reasonable buffer is 10–20% of (Target Salary + Business Expenses) — money you bake into your rate that becomes either savings, an emergency fund, or just absorbs the bad months.

If you skip the buffer, you'll feel financially fine in good years and panic in bad ones. The whole point of the buffer is making the bad years survivable.

Input 4: Billable Hours

This is where most calculators go wrong. The naive math is "52 weeks × 40 hours = 2,080 hours." The reality is that freelancers bill nowhere close to 40 hours a week.

A typical solo freelancer's year:

  • 52 weeks total
  • Minus 4 weeks vacation, sick days, and personal time → 48 working weeks
  • Minus ~1 week of public holidays → 47 working weeks
  • 40 hours/week × 47 weeks = 1,880 working hours
  • Minus 30–40% non-billable work (sales calls, proposals, admin, accounting, learning, marketing, ghosted leads) → 1,100–1,300 actual billable hours per year

If you're disciplined and have a steady client base, you can push billable hours to ~1,400. If you're new or doing a lot of business development, expect ~1,000. Use 1,200 as a sane default — it accounts for reality without being pessimistic.

Three Worked Examples

Let's run the formula three times to show how the right rate varies by role and lifestyle.

Example 1: Junior Web Designer, US, Wants $70K Take-Home

  • Target salary (with benefits + tax gross-up): $95,000
  • Business expenses: $8,000
  • Buffer (15%): $15,450
  • Billable hours (year 1, lots of prospecting): 1,000

Hourly rate: ($95,000 + $8,000 + $15,450) ÷ 1,000 = $118/hour

If a junior designer is quoting $50–60/hour, they're earning about half of what they think their take-home will be. The fix isn't to work twice as hard — it's to charge $100+ from the start, even if it means turning away the cheapest clients.

Example 2: Mid-Level Backend Developer, US, Wants $130K Take-Home

  • Target salary (with benefits + tax gross-up): $175,000
  • Business expenses: $14,000 (cloud hosting, AI tools, devices)
  • Buffer (12%): $22,680
  • Billable hours: 1,300 (established pipeline, lower prospecting overhead)

Hourly rate: ($175,000 + $14,000 + $22,680) ÷ 1,300 = $163/hour

Mid-level backend devs frequently quote $80–110/hour and wonder why they're net-poorer than friends in salaried jobs at the same nominal "salary." The real cost of self-employment closes that gap fast.

Example 3: Marketing Consultant, EU, Wants €60K Take-Home

  • Target salary (gross-up for social charges + VAT scheme + paid leave): €88,000
  • Business expenses: €10,000
  • Buffer (15%): €14,700
  • Billable hours: 1,150 (consulting has more sales overhead than dev/design)

Hourly rate: (€88,000 + €10,000 + €14,700) ÷ 1,150 = €98/hour

European freelancers often anchor on local employee gross salaries when setting rates, but social charges and the lack of paid sick leave make the gross-up larger than it looks. €100/hour is a reasonable mid-market consulting rate, not a premium one.

How to Sanity-Check Your Number Against the Market

Once you have your formula-driven rate, validate it against three external signals:

  • Public rate guides. Toptal, Upwork, Bonsai, and Codementor publish median rates by skill and seniority. If your formula spits out $200/hour for a junior designer, the market won't validate it — you need to either reframe (productize, niche down) or revisit your inputs.
  • Peer benchmarking. Ask 3–5 freelancers in your specific niche (not generic "freelancer" forums). Slack groups like Indie Hackers and niche Discords are good sources. People share rates more openly than you'd expect, especially privately.
  • Win-rate calibration. If you win 90%+ of the proposals you send, your rate is too low. If you win less than 25%, it might be too high (or your positioning is off). The healthy range is roughly 35–60% — high enough to keep the pipeline full, low enough to know you're not leaving money on the table.

Should You Even Charge by the Hour?

The hourly model has one big problem: it caps your upside. If you get faster, you make less. If you ship a project in 8 hours that a slower freelancer would take 30 hours on, hourly billing penalizes your skill.

Three alternatives once your hourly rate is calibrated:

  • Project-based pricing. Quote the whole project at (your hourly rate × estimated hours × 1.3 contingency). The 30% buffer covers scope creep without renegotiation. You ship in 70% of the time? You just earned the equivalent of a higher hourly rate.
  • Value-based pricing. Price as a fraction of the outcome the client gets. A landing page that drives $200K in revenue is worth more than a landing page that doesn't, even if both took 10 hours. Best for senior freelancers in measurable niches (marketing, sales, analytics, performance work).
  • Retainers. A fixed monthly fee for a defined scope of ongoing work. Predictable for both sides. Use your hourly rate × expected monthly hours × 0.85 (a small discount in exchange for revenue stability).

The hourly rate calculation is still the foundation — every other pricing model gets sanity-checked against it. "Am I clearing my hourly target?" is the question that prevents project quotes from quietly turning into below-minimum-wage work.

How to Raise Your Rate Without Losing Clients

If you're running this formula and realizing you're 30–50% under, you have three paths to fixing it:

  1. Raise on new clients only. Quote the new rate to every new prospect starting today. Existing clients keep the old rate; they roll off naturally over 6–12 months as the engagement ends or scope changes.
  2. Raise on contract renewal. When an existing project ends or a retainer hits its anniversary, propose the new rate. Frame it as a yearly adjustment ("annual rate review") not as a personal ask.
  3. Add scope, not increase rate. If a direct rate hike is awkward, expand the scope at the same engagement size. "Same monthly fee but I'll also handle X" effectively raises your rate without raising the number on the invoice. Use sparingly — it can drift into doing more work for the same money.

When you do quote the new rate, don't apologize. The math is the math. "Based on the scope and the timeline, my rate for this project is $X. That includes [deliverables]. I can have a proposal over by [date]." If a client pushes back, they're telling you they're not the right client at this rate — not that the rate is wrong.

The Quick-Reference Summary

  • Formula: (Target Salary + Business Expenses + Buffer) ÷ Billable Hours
  • Salary gross-up factor for US freelancers: 1.35–1.5× the equivalent W-2 salary.
  • Business expenses default: $10,000–$15,000 per year for a software-tooled freelancer.
  • Buffer: 10–20% of (salary + expenses).
  • Billable hours default: 1,200 per year. Don't use 2,080.
  • Sanity check: Win rate 35–60%, peer rates ±25% of yours, public guides confirm the order of magnitude.

Run the formula once a year — usually in January, when expenses and target salary both update. Your rate should never be more than 12 months old.

From Hourly Rate to Sent Invoice

Calculating the right rate is half the battle. The other half is putting it on a clean, professional invoice that gets paid on time. Once you've quoted the right number, the last thing you want is to lose hours on the admin side — formatting templates, double-checking line items, chasing payments.

That's the exact gap InvoiceAgent closes. Type a sentence — "20 hours of backend work for Acme at $163/hour, net 15" — and get a formatted PDF invoice in 10 seconds, with all the fields covered in our invoice template guide. The autopilot agent then handles the follow-ups using the email templates we publish, so the rate you charge actually shows up in your bank account on time.

Set the rate. Send the invoice. Get paid. The formula in this article handles the first step. InvoiceAgent handles the rest.

Create your first invoice free with InvoiceAgent

Describe your work in plain English and get a professional PDF invoice in under 10 seconds. No account required.

Try InvoiceAgent free