Skip to content

Instantly share code, notes, and snippets.

@tadaspi
Created March 15, 2026 03:07
Show Gist options
  • Select an option

  • Save tadaspi/6a00706db8e511f1442206f22eaf73a6 to your computer and use it in GitHub Desktop.

Select an option

Save tadaspi/6a00706db8e511f1442206f22eaf73a6 to your computer and use it in GitHub Desktop.
Embeddable freelance rate calculator widget - add to any website with 2 lines of code

Freelance Rate Calculator - Embeddable Widget

Add a rate calculator to any website with 2 lines of code.

Quick Start

<script src="https://hourly-rate-calculator.tp-business.workers.dev/widget.js"></script>
<div id="freelance-rate-calc"></div>

That's it. The widget will render automatically.

What It Does

Calculates the minimum hourly rate a freelancer needs to charge based on:

  • Desired annual take-home pay
  • Self-employment tax (15.3%)
  • Estimated income tax (~25%)
  • Health insurance costs
  • Business expenses
  • Non-billable hours (admin, marketing, invoicing)

Example Calculation

If you want $80,000 take-home, you actually need:

Item Amount
Desired income $80,000
Self-employment tax $12,240
Income tax $20,000
Health insurance $8,000
Expenses $3,000
Total needed $123,240
Billable hours (60% of 2080) 1,248
Hourly rate $99/hr

Most freelancers charging $50/hr for this scenario are losing money.

Full Calculator

For detailed breakdowns, PDF exports, and saved scenarios:

https://hourly-rate-calculator.tp-business.workers.dev

License

MIT - Use freely, embed anywhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment