<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Keith So</title>
    <description>The latest articles on DEV Community by Keith So (@kitfunso).</description>
    <link>https://dev.to/kitfunso</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3779185%2F211ffd61-571c-487d-b5bc-a77e54ea6f76.png</url>
      <title>DEV Community: Keith So</title>
      <link>https://dev.to/kitfunso</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kitfunso"/>
    <language>en</language>
    <item>
      <title>The Math Behind Early Retirement (FIRE) And What Most Calculators Get Wrong</title>
      <dc:creator>Keith So</dc:creator>
      <pubDate>Mon, 09 Mar 2026 08:01:33 +0000</pubDate>
      <link>https://dev.to/kitfunso/the-math-behind-early-retirement-fire-and-what-most-calculators-get-wrong-6hm</link>
      <guid>https://dev.to/kitfunso/the-math-behind-early-retirement-fire-and-what-most-calculators-get-wrong-6hm</guid>
      <description>&lt;p&gt;You've probably seen the FIRE pitch: save aggressively, invest, retire at 40. The subreddits are packed with spreadsheets and projections. But most back-of-napkin FIRE math makes the same mistakes, and they compound badly over a 20-year horizon.&lt;/p&gt;

&lt;p&gt;Let's break down the actual math, where the popular shortcuts fail, and how to run the numbers properly.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Core FIRE Equation
&lt;/h2&gt;

&lt;p&gt;FIRE boils down to one question: &lt;strong&gt;how many years until my investment portfolio covers my annual spending?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The classic rule of thumb is the &lt;strong&gt;4% rule&lt;/strong&gt; (from the 1998 Trinity Study). If your annual expenses are X, you need 25X saved. That's it. Simple division.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;FIRE number = Annual expenses / 0.04
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Spending 30,000/year? You need 750,000.&lt;/p&gt;

&lt;p&gt;But this formula hides three assumptions that quietly wreck projections.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mistake #1: Ignoring Inflation During Accumulation
&lt;/h2&gt;

&lt;p&gt;The 4% rule accounts for inflation-adjusted withdrawals &lt;em&gt;in retirement&lt;/em&gt;, but most people forget inflation during the &lt;strong&gt;savings phase&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;If you earn 60K and spend 30K today, you're saving 30K/year. But in 15 years at 3% inflation, that same lifestyle costs 46,739. Your FIRE number just jumped from 750K to 1.17M.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Future expenses = Current expenses x (1 + inflation)^years
Adjusted FIRE number = Future expenses / withdrawal_rate
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This alone adds 3-7 years to most projections. &lt;a href="https://boring-math.com/calculators/fire-calculator" rel="noopener noreferrer"&gt;Try it with real numbers&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Mistake #2: Using Average Returns Instead of Sequence of Returns
&lt;/h2&gt;

&lt;p&gt;Markets don't return a steady 7% per year. They crash, they spike, they go sideways.&lt;/p&gt;

&lt;p&gt;A portfolio averaging 7% over 30 years might look like:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Scenario&lt;/th&gt;
&lt;th&gt;Year 1-5 avg&lt;/th&gt;
&lt;th&gt;Year 6-30 avg&lt;/th&gt;
&lt;th&gt;Final value (500K start)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Steady&lt;/td&gt;
&lt;td&gt;7%&lt;/td&gt;
&lt;td&gt;7%&lt;/td&gt;
&lt;td&gt;3.81M&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Early crash&lt;/td&gt;
&lt;td&gt;-8%&lt;/td&gt;
&lt;td&gt;9.4%&lt;/td&gt;
&lt;td&gt;2.94M&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Late crash&lt;/td&gt;
&lt;td&gt;9.4%&lt;/td&gt;
&lt;td&gt;5.2%&lt;/td&gt;
&lt;td&gt;3.12M&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Same average. Different outcomes. The early crash scenario is the killer during retirement because you're selling low to fund expenses.&lt;/p&gt;

&lt;p&gt;This is called &lt;strong&gt;sequence of returns risk&lt;/strong&gt;, and it's why a single number like "7% growth" is dangerously misleading.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mistake #3: Treating the Withdrawal Rate as Fixed
&lt;/h2&gt;

&lt;p&gt;The 4% rule assumes a 30-year retirement. If you're retiring at 35, you need that money to last 50-60 years. The safe withdrawal rate drops.&lt;/p&gt;

&lt;p&gt;Research from Wade Pfau and others suggests:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Retirement length&lt;/th&gt;
&lt;th&gt;Safe withdrawal rate&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;30 years&lt;/td&gt;
&lt;td&gt;4.0%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;40 years&lt;/td&gt;
&lt;td&gt;3.5%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;50 years&lt;/td&gt;
&lt;td&gt;3.25%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;60 years&lt;/td&gt;
&lt;td&gt;3.0%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;At a 3% withdrawal rate, your FIRE number for 30K/year spending isn't 750K. It's &lt;strong&gt;1,000,000&lt;/strong&gt;. That's a 33% increase from a single variable change.&lt;/p&gt;

&lt;h2&gt;
  
  
  Putting It All Together
&lt;/h2&gt;

&lt;p&gt;A proper FIRE calculation needs:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Current savings&lt;/strong&gt; and &lt;strong&gt;monthly contribution&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Expected return&lt;/strong&gt; (use real returns, net of inflation, around 4-5% historically)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Current annual expenses&lt;/strong&gt; inflated to your target retirement date&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Withdrawal rate&lt;/strong&gt; adjusted for your expected retirement length&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tax treatment&lt;/strong&gt; of withdrawals (ISA vs pension vs general account matters hugely in the UK)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The formula for years to FIRE, accounting for compound growth on contributions:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Years = ln((FIRE_number * r + C) / (P * r + C)) / ln(1 + r)

Where:
  P = current portfolio value
  C = annual contribution
  r = real annual return (after inflation)
  FIRE_number = annual expenses / withdrawal rate
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is a log equation, which means the relationship between savings rate and years to retirement is non-linear. Going from a 30% savings rate to 50% doesn't cut your timeline by a third. It might cut it in half.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Savings Rate Curve
&lt;/h2&gt;

&lt;p&gt;Here's what the numbers look like at a 5% real return, starting from zero:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Savings rate&lt;/th&gt;
&lt;th&gt;Years to FIRE (4% rule)&lt;/th&gt;
&lt;th&gt;Years to FIRE (3% rule)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;20%&lt;/td&gt;
&lt;td&gt;37 years&lt;/td&gt;
&lt;td&gt;42 years&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;30%&lt;/td&gt;
&lt;td&gt;28 years&lt;/td&gt;
&lt;td&gt;33 years&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;40%&lt;/td&gt;
&lt;td&gt;22 years&lt;/td&gt;
&lt;td&gt;26 years&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;50%&lt;/td&gt;
&lt;td&gt;17 years&lt;/td&gt;
&lt;td&gt;21 years&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;60%&lt;/td&gt;
&lt;td&gt;12 years&lt;/td&gt;
&lt;td&gt;16 years&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;70%&lt;/td&gt;
&lt;td&gt;9 years&lt;/td&gt;
&lt;td&gt;12 years&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The jump from 50% to 70% savings rate saves you 8-9 years. The math heavily rewards higher savings rates.&lt;/p&gt;

&lt;h2&gt;
  
  
  Run Your Own Numbers
&lt;/h2&gt;

&lt;p&gt;I built a &lt;a href="https://boring-math.com/calculators/fire-calculator" rel="noopener noreferrer"&gt;FIRE calculator&lt;/a&gt; that handles all of this: inflation-adjusted expenses, variable withdrawal rates, and compound growth on ongoing contributions. No signup, runs in your browser.&lt;/p&gt;

&lt;p&gt;If you want to explore the components separately:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://boring-math.com/calculators/compound-interest-calculator" rel="noopener noreferrer"&gt;Compound interest calculator&lt;/a&gt; to model portfolio growth scenarios&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://boring-math.com/calculators/inflation-calculator" rel="noopener noreferrer"&gt;Inflation calculator&lt;/a&gt; to see what your expenses will actually be in 20 years&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://boring-math.com/calculators/savings-goal-calculator" rel="noopener noreferrer"&gt;Savings goal calculator&lt;/a&gt; to reverse-engineer monthly contributions&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The Honest Take
&lt;/h2&gt;

&lt;p&gt;FIRE math isn't hard. It's logarithms and compound growth. The hard part is the inputs: predicting returns, inflation, tax policy, and your own spending over decades.&lt;/p&gt;

&lt;p&gt;Anyone who gives you a single number without showing sensitivity analysis is selling you a fantasy. Run the numbers yourself, stress-test the assumptions, and plan for the version where things don't go perfectly.&lt;/p&gt;

&lt;p&gt;The spreadsheet doesn't care about your feelings. That's what makes it useful.&lt;/p&gt;

</description>
      <category>finance</category>
      <category>math</category>
      <category>career</category>
      <category>webdev</category>
    </item>
    <item>
      <title>3 UK Money Checks I Run Before Saying Yes to a Pay Rise</title>
      <dc:creator>Keith So</dc:creator>
      <pubDate>Mon, 02 Mar 2026 08:01:35 +0000</pubDate>
      <link>https://dev.to/kitfunso/3-uk-money-checks-i-run-before-saying-yes-to-a-pay-rise-7p4</link>
      <guid>https://dev.to/kitfunso/3-uk-money-checks-i-run-before-saying-yes-to-a-pay-rise-7p4</guid>
      <description>&lt;h1&gt;
  
  
  3 UK Money Checks I Run Before Saying Yes to a Pay Rise
&lt;/h1&gt;

&lt;p&gt;Most salary conversations focus on one number: &lt;strong&gt;gross pay&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;But when your pay crosses certain UK thresholds, your &lt;em&gt;effective&lt;/em&gt; gain can be much smaller than expected.&lt;/p&gt;

&lt;p&gt;I keep a simple checklist and run the same three calculations every time I get an offer, raise, or contract change.&lt;/p&gt;

&lt;h2&gt;
  
  
  1) Check for the GBP 100k tax trap first
&lt;/h2&gt;

&lt;p&gt;In the UK, your Personal Allowance is reduced by GBP 1 for every GBP 2 earned above GBP 100,000.&lt;/p&gt;

&lt;p&gt;That means in the GBP 100k-GBP 125,140 range, many people face an &lt;strong&gt;effective 60% marginal rate&lt;/strong&gt; (before National Insurance and student loan effects).&lt;/p&gt;

&lt;p&gt;So if your salary goes from GBP 99,000 to GBP 109,000, the headline increase can feel great, but the take-home uplift can be underwhelming.&lt;/p&gt;

&lt;p&gt;Use this first:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://boring-math.com/calculators/uk-100k-tax-trap-calculator" rel="noopener noreferrer"&gt;UK 100k Tax Trap Calculator&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Quick sanity check
&lt;/h3&gt;

&lt;p&gt;If a raise puts you just into that band, options like pension salary sacrifice can sometimes improve outcomes more than a straight cash increase.&lt;/p&gt;

&lt;h2&gt;
  
  
  2) Model student loan repayments on the &lt;em&gt;new&lt;/em&gt; salary
&lt;/h2&gt;

&lt;p&gt;Many people estimate repayments with rough percentages and get it wrong.&lt;/p&gt;

&lt;p&gt;For Plan 2 borrowers, repayments are based on income above the threshold, so higher salary usually increases monthly deductions immediately.&lt;/p&gt;

&lt;p&gt;Before accepting a raise, I test both scenarios:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;current salary&lt;/li&gt;
&lt;li&gt;proposed salary&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then compare annual repayment difference:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://boring-math.com/calculators/uk-student-loan-calculator" rel="noopener noreferrer"&gt;UK Student Loan Calculator&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This prevents the classic "I got a raise but my payslip barely moved" surprise.&lt;/p&gt;

&lt;h2&gt;
  
  
  3) Convert the raise into &lt;em&gt;real&lt;/em&gt; (inflation-adjusted) terms
&lt;/h2&gt;

&lt;p&gt;A 5% raise in a 4% inflation environment is not a 5% improvement in buying power.&lt;/p&gt;

&lt;p&gt;Run a quick real-value check:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://boring-math.com/calculators/inflation-calculator" rel="noopener noreferrer"&gt;Inflation Calculator&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If your nominal pay is up but real pay is flat, that changes how you evaluate the offer - and how hard you negotiate non-cash benefits.&lt;/p&gt;

&lt;h2&gt;
  
  
  A practical decision framework
&lt;/h2&gt;

&lt;p&gt;When I compare two offers (or old vs new salary), I track four values:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Gross salary difference&lt;/li&gt;
&lt;li&gt;Net annual take-home difference after tax + loan effects&lt;/li&gt;
&lt;li&gt;Pension impact (especially if salary sacrifice is available)&lt;/li&gt;
&lt;li&gt;Real-terms gain after inflation&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Only then do I decide whether the raise is genuinely meaningful.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this matters
&lt;/h2&gt;

&lt;p&gt;Most people don't need more financial theory - they need a faster way to avoid bad assumptions.&lt;/p&gt;

&lt;p&gt;That's why I built these calculators: quick, no-signup checks you can run in 2 minutes before making a decision.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://boring-math.com/calculators/uk-100k-tax-trap-calculator" rel="noopener noreferrer"&gt;UK 100k Tax Trap Calculator&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://boring-math.com/calculators/uk-student-loan-calculator" rel="noopener noreferrer"&gt;UK Student Loan Calculator&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://boring-math.com/calculators/inflation-calculator" rel="noopener noreferrer"&gt;Inflation Calculator&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;No signup. No email capture. Just math.&lt;/p&gt;

</description>
      <category>personalfinance</category>
      <category>career</category>
      <category>webdev</category>
      <category>money</category>
    </item>
    <item>
      <title>Salary Sacrifice: The Tax Hack Every UK Developer Should Know</title>
      <dc:creator>Keith So</dc:creator>
      <pubDate>Sun, 01 Mar 2026 10:50:00 +0000</pubDate>
      <link>https://dev.to/kitfunso/salary-sacrifice-the-tax-hack-every-uk-developer-should-know-3pdk</link>
      <guid>https://dev.to/kitfunso/salary-sacrifice-the-tax-hack-every-uk-developer-should-know-3pdk</guid>
      <description>&lt;p&gt;Most UK developers leave thousands of pounds on the table every year because nobody explains salary sacrifice properly. Not your employer, not your accountant, definitely not HMRC.&lt;/p&gt;

&lt;p&gt;Here's how it actually works, with real numbers at real salary levels.&lt;/p&gt;

&lt;h2&gt;
  
  
  What salary sacrifice actually is
&lt;/h2&gt;

&lt;p&gt;You agree with your employer to reduce your gross salary. The amount you give up goes straight into your workplace pension. Because it never hits your pay slip as income, you don't pay income tax or National Insurance on it.&lt;/p&gt;

&lt;p&gt;That second part is the key. Personal pension contributions get income tax relief, but you still pay NI. Salary sacrifice dodges both.&lt;/p&gt;

&lt;h2&gt;
  
  
  The numbers at different salary levels
&lt;/h2&gt;

&lt;h3&gt;
  
  
  On 30,000 pounds (basic rate taxpayer)
&lt;/h3&gt;

&lt;p&gt;Sacrifice 200 pounds per month into pension:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Income tax saved: 40 pounds (20%)&lt;/li&gt;
&lt;li&gt;NI saved: 16 pounds (8%)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Cost to your take-home: 144 pounds&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Amount going into pension: 200 pounds&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Effective discount: 28%&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  On 50,000 pounds (higher rate taxpayer)
&lt;/h3&gt;

&lt;p&gt;Sacrifice 500 pounds per month:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Income tax saved: 200 pounds (40%)&lt;/li&gt;
&lt;li&gt;NI saved: 10 pounds (2% above UEL)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Cost to your take-home: 290 pounds&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Amount going into pension: 500 pounds&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Effective discount: 42%&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;At higher rate, you're getting 500 pounds into your pension for a 290 pound reduction in take-home. That's a 72% return on day one.&lt;/p&gt;

&lt;h3&gt;
  
  
  On 80,000 pounds (solid senior dev salary)
&lt;/h3&gt;

&lt;p&gt;Sacrifice 800 pounds per month:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Income tax saved: 320 pounds (40%)&lt;/li&gt;
&lt;li&gt;NI saved: 16 pounds (2%)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Cost to your take-home: 464 pounds&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Amount going into pension: 800 pounds&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Effective discount: 42%&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  On 120,000 pounds (in the 100k tax trap)
&lt;/h3&gt;

&lt;p&gt;This is where it gets wild. Sacrifice 1,667 pounds per month (20,000 per year) to bring taxable income to 100,000 pounds:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Income tax saved: 667 pounds per month (40%)&lt;/li&gt;
&lt;li&gt;Personal allowance restored: saves an additional 419 pounds per month&lt;/li&gt;
&lt;li&gt;NI saved: 33 pounds per month&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Cost to your take-home: 548 pounds&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Amount going into pension: 1,667 pounds&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Effective discount: 67%&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You're putting 1,667 pounds into your pension every month and it only costs you 548 pounds in take-home pay. The rest was going to HMRC anyway.&lt;/p&gt;

&lt;h2&gt;
  
  
  Salary sacrifice vs personal pension contributions
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Salary Sacrifice&lt;/th&gt;
&lt;th&gt;Personal Pension&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Income tax relief&lt;/td&gt;
&lt;td&gt;Yes (automatic)&lt;/td&gt;
&lt;td&gt;Yes (20% added, claim rest via SA)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;NI saving (employee)&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;NI saving (employer)&lt;/td&gt;
&lt;td&gt;Yes (15%)&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reduces taxable income&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Affects mortgage applications&lt;/td&gt;
&lt;td&gt;Yes (lower gross)&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Affects student loan&lt;/td&gt;
&lt;td&gt;Yes (calculated on lower salary)&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The mortgage point is the main trade-off. Lenders look at your gross salary, and salary sacrifice reduces it. If you're about to apply for a mortgage, time your sacrifice carefully.&lt;/p&gt;

&lt;h2&gt;
  
  
  The employer NI bonus
&lt;/h2&gt;

&lt;p&gt;Here's something most people miss. When you sacrifice salary, your employer also saves 15% NI on that amount. Some employers pass this saving into your pension too.&lt;/p&gt;

&lt;p&gt;On a 500 pound monthly sacrifice, your employer saves 75 pounds in NI. If they pass it on, you're getting 575 pounds into your pension for a 290 pound take-home reduction. Ask your HR team if they do this.&lt;/p&gt;

&lt;h2&gt;
  
  
  Student loan interaction
&lt;/h2&gt;

&lt;p&gt;Salary sacrifice reduces your gross salary for student loan calculation purposes. If you're on Plan 2 (9% above 27,295 pounds) and sacrifice 300 pounds per month, that's 27 pounds less in student loan repayments each month. Not life-changing, but it adds up.&lt;/p&gt;

&lt;h2&gt;
  
  
  When salary sacrifice isn't worth it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Near national minimum wage&lt;/strong&gt;: sacrifice can't take you below NMW. Your employer will block it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Need the cash now&lt;/strong&gt;: if you're saving for a house deposit and need every pound liquid, pension contributions (even tax-efficient ones) aren't helpful.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;About to apply for a mortgage&lt;/strong&gt;: as mentioned, lower gross salary means lower borrowing capacity.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Already maxing annual allowance&lt;/strong&gt;: the pension annual allowance is 60,000 pounds (2025/26). If employer and employee contributions combined exceed this, you'll face a tax charge.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How to set it up
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Ask your employer if they offer salary sacrifice for pension contributions (most medium-large companies do)&lt;/li&gt;
&lt;li&gt;Decide how much to sacrifice (use a &lt;a href="https://boring-math.com/calculators/uk-salary-sacrifice-calculator" rel="noopener noreferrer"&gt;salary sacrifice calculator&lt;/a&gt; to see the exact take-home impact)&lt;/li&gt;
&lt;li&gt;Fill in the paperwork (usually an amendment to your employment contract)&lt;/li&gt;
&lt;li&gt;Check your next pay slip to confirm it's working&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If your employer doesn't offer salary sacrifice, you can still make personal pension contributions and claim higher-rate relief through Self Assessment. You lose the NI saving, but you keep the income tax benefit.&lt;/p&gt;

&lt;h2&gt;
  
  
  The bottom line
&lt;/h2&gt;

&lt;p&gt;If you're a higher rate taxpayer (above 50,270 pounds), salary sacrifice into pension is one of the most tax-efficient things you can do. The numbers aren't small: a senior developer earning 80,000 pounds who sacrifices 10,000 pounds per year saves roughly 4,200 pounds in tax and NI. That's real money.&lt;/p&gt;

&lt;p&gt;If you're earning over 100,000 pounds and not using salary sacrifice, you're actively paying thousands more tax than you need to. Run your numbers through the &lt;a href="https://boring-math.com/calculators/uk-100k-tax-trap-calculator" rel="noopener noreferrer"&gt;100k tax trap calculator&lt;/a&gt; to see exactly how much.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;&lt;a href="https://boring-math.com/calculators/uk-tax-calculator" rel="noopener noreferrer"&gt;UK Tax Calculator&lt;/a&gt; | &lt;a href="https://boring-math.com/calculators/uk-pension-calculator" rel="noopener noreferrer"&gt;Pension Calculator&lt;/a&gt; | &lt;a href="https://boring-math.com/calculators/uk-salary-sacrifice-calculator" rel="noopener noreferrer"&gt;Salary Sacrifice Calculator&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;All figures based on 2025/26 England/Wales rates.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>tax</category>
      <category>career</category>
      <category>money</category>
      <category>uk</category>
    </item>
    <item>
      <title>The UK Developer Tax Trap Nobody Warns You About</title>
      <dc:creator>Keith So</dc:creator>
      <pubDate>Sun, 01 Mar 2026 10:49:21 +0000</pubDate>
      <link>https://dev.to/kitfunso/the-uk-developer-tax-trap-nobody-warns-you-about-2okh</link>
      <guid>https://dev.to/kitfunso/the-uk-developer-tax-trap-nobody-warns-you-about-2okh</guid>
      <description>&lt;p&gt;You got the promotion. You're earning 105,000 pounds. You check your pay slip expecting a nice bump.&lt;/p&gt;

&lt;p&gt;It's barely more than when you were on 99,000 pounds.&lt;/p&gt;

&lt;p&gt;Welcome to the UK's 100k tax trap, the most punishing stretch of the entire tax system, and one that hits software developers disproportionately hard.&lt;/p&gt;

&lt;h2&gt;
  
  
  The maths that makes you angry
&lt;/h2&gt;

&lt;p&gt;When your income crosses 100,000 pounds, HMRC claws back your 12,570 pound Personal Allowance at a rate of 1 pound for every 2 pounds you earn above the threshold. That income that was previously tax-free? Now taxed at 40%.&lt;/p&gt;

&lt;p&gt;Here's what that actually means per pound earned between 100k and 125,140 pounds:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;40p&lt;/strong&gt; income tax (higher rate)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;20p&lt;/strong&gt; effective tax from losing your personal allowance (50% of 40%)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;2p&lt;/strong&gt; National Insurance&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Total: 62p of every pound goes to HMRC.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That's a higher marginal rate than someone earning 500,000 pounds (who pays 47%).&lt;/p&gt;

&lt;h2&gt;
  
  
  A real example: 99k vs 110k
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;On 99,000 pounds&lt;/strong&gt;, you keep your full 12,570 pound personal allowance. Take-home after tax and NI: roughly &lt;strong&gt;64,500 pounds&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;On 110,000 pounds&lt;/strong&gt;, you've lost 5,000 pounds of personal allowance. Take-home: roughly &lt;strong&gt;69,200 pounds&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;An extra 11,000 pounds gross gives you only &lt;strong&gt;4,700 pounds&lt;/strong&gt; more in your pocket. The rest, about 6,300 pounds, went to HMRC. That's an effective rate of 57% on that chunk of income.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this matters for developers
&lt;/h2&gt;

&lt;p&gt;The average UK software engineer salary is around 55k-65k. Senior engineers and tech leads in London regularly hit 80k-120k. Contractors inside IR35 can easily land in this zone.&lt;/p&gt;

&lt;p&gt;If you're a senior dev negotiating a raise from 95k to 110k, you might assume that 15k bump means 9k more take-home. It doesn't. You'd see about 6,400 extra, because 10k of that raise falls in the trap zone.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix: salary sacrifice into pension
&lt;/h2&gt;

&lt;p&gt;The most common escape is salary sacrifice. You redirect some of your salary into your workplace pension before tax is applied.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example&lt;/strong&gt;: you earn 115,000 pounds and sacrifice 15,000 pounds into pension.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Your taxable income drops to 100,000 pounds&lt;/li&gt;
&lt;li&gt;Your full personal allowance (12,570 pounds) is restored&lt;/li&gt;
&lt;li&gt;You save approximately 5,000 pounds in income tax you would have lost to the taper&lt;/li&gt;
&lt;li&gt;You save 300 pounds in NI on the sacrificed amount&lt;/li&gt;
&lt;li&gt;Your employer saves 15% NI on the sacrificed amount too (some employers pass this saving to you)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Net cost to you&lt;/strong&gt;: roughly 9,700 pound reduction in take-home pay, but 15,000 pounds goes into your pension. That's a 54% return before any investment growth.&lt;/p&gt;

&lt;h2&gt;
  
  
  Should you care?
&lt;/h2&gt;

&lt;p&gt;If you earn between 100,000 and 125,140 pounds: yes, absolutely. The numbers are too large to ignore.&lt;/p&gt;

&lt;p&gt;If you're approaching 100k: plan now. Talk to your employer about salary sacrifice before your next pay rise pushes you into the zone.&lt;/p&gt;

&lt;p&gt;If you're a contractor: this applies to your deemed salary if you're inside IR35, or your dividends and salary mix if you're running a Ltd company.&lt;/p&gt;

&lt;h2&gt;
  
  
  Run your own numbers
&lt;/h2&gt;

&lt;p&gt;I built a free &lt;a href="https://boring-math.com/calculators/uk-100k-tax-trap-calculator" rel="noopener noreferrer"&gt;100k tax trap calculator&lt;/a&gt; that shows your exact marginal rate and optimal salary sacrifice amount. There's also a &lt;a href="https://boring-math.com/calculators/uk-salary-sacrifice-calculator" rel="noopener noreferrer"&gt;salary sacrifice calculator&lt;/a&gt; if you want to model different contribution levels.&lt;/p&gt;

&lt;p&gt;No signup, no email capture. Just the maths.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;All figures based on 2025/26 England/Wales tax rates. Scotland has slightly different bands (42% higher rate) but the personal allowance taper works the same way.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>tax</category>
      <category>career</category>
      <category>money</category>
      <category>uk</category>
    </item>
    <item>
      <title>The Math Behind Compound Interest (And Why It Breaks Your Intuition)</title>
      <dc:creator>Keith So</dc:creator>
      <pubDate>Mon, 23 Feb 2026 08:06:44 +0000</pubDate>
      <link>https://dev.to/kitfunso/the-math-behind-compound-interest-and-why-it-breaks-your-intuition-1ee2</link>
      <guid>https://dev.to/kitfunso/the-math-behind-compound-interest-and-why-it-breaks-your-intuition-1ee2</guid>
      <description>&lt;p&gt;Most people know compound interest is powerful. Few people know &lt;em&gt;why&lt;/em&gt; it feels so unintuitive.&lt;/p&gt;

&lt;p&gt;Here's the thing: human brains think linearly. We expect 100/year to become 1,000 in 10 years. Compound interest doesn't work that way, and the gap between what we expect and what actually happens is where the real money lives.&lt;/p&gt;

&lt;p&gt;Let me break down the actual math.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Formula (It's Simpler Than You Think)
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;ext&lt;br&gt;
A = P(1 + r/n)^(nt)&lt;br&gt;
&lt;/code&gt;  &lt;/p&gt;

&lt;p&gt;Where:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A&lt;/strong&gt; = final amount&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;P&lt;/strong&gt; = principal (starting amount)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;r&lt;/strong&gt; = annual interest rate (as decimal)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;n&lt;/strong&gt; = compounding frequency per year&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;t&lt;/strong&gt; = time in years&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That's it. One formula. But the magic is in the exponent &lt;code&gt;nt&lt;/code&gt;. Exponents are what make this non-linear, and non-linear is what breaks your brain.&lt;/p&gt;

&lt;h2&gt;
  
  
  A Real Example
&lt;/h2&gt;

&lt;p&gt;Say you invest 10,000 at 7% annually, compounded monthly, for 30 years.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Linear thinking says:&lt;/strong&gt; 7% of 10,000 = 700/year x 30 = 21,000 in gains. Total: 31,000.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Actual result:&lt;/strong&gt; 10,000 x (1 + 0.07/12)^(360) = &lt;strong&gt;81,165&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That's not a small rounding error. Linear thinking underestimates the real result by &lt;strong&gt;61%&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://boring-math.com/calculators/compound-interest-calculator" rel="noopener noreferrer"&gt;Try it yourself with different numbers&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the Money Actually Comes From
&lt;/h2&gt;

&lt;p&gt;Here's the year-by-year breakdown that makes this click:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Period&lt;/th&gt;
&lt;th&gt;Balance&lt;/th&gt;
&lt;th&gt;Interest Earned That Year&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Year 1&lt;/td&gt;
&lt;td&gt;10,700&lt;/td&gt;
&lt;td&gt;700&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Year 5&lt;/td&gt;
&lt;td&gt;14,026&lt;/td&gt;
&lt;td&gt;918&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Year 10&lt;/td&gt;
&lt;td&gt;19,672&lt;/td&gt;
&lt;td&gt;1,288&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Year 20&lt;/td&gt;
&lt;td&gt;38,697&lt;/td&gt;
&lt;td&gt;2,534&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Year 30&lt;/td&gt;
&lt;td&gt;76,123&lt;/td&gt;
&lt;td&gt;4,987&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;In year 1, you earn 700. In year 30, you earn 4,987 on the same original investment. The interest is earning interest, which earns more interest.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;More than half your total gains come in the final 10 years.&lt;/strong&gt; This is why starting early matters more than investing more.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Frequency Question
&lt;/h2&gt;

&lt;p&gt;Does compounding monthly vs. annually actually matter?&lt;/p&gt;

&lt;p&gt;10,000 at 7% for 30 years:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Frequency&lt;/th&gt;
&lt;th&gt;Final Amount&lt;/th&gt;
&lt;th&gt;Difference vs. Annual&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Annually&lt;/td&gt;
&lt;td&gt;76,123&lt;/td&gt;
&lt;td&gt;--&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Quarterly&lt;/td&gt;
&lt;td&gt;79,957&lt;/td&gt;
&lt;td&gt;+3,834&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Monthly&lt;/td&gt;
&lt;td&gt;81,165&lt;/td&gt;
&lt;td&gt;+5,042&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Daily&lt;/td&gt;
&lt;td&gt;81,662&lt;/td&gt;
&lt;td&gt;+5,539&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Monthly to daily? Nearly identical. But annual to monthly? That's a meaningful 5K difference on a 10K investment.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Part Nobody Talks About: Inflation
&lt;/h2&gt;

&lt;p&gt;Here's the uncomfortable truth that compound interest evangelists skip. Inflation compounds too, in the opposite direction.&lt;/p&gt;

&lt;p&gt;If your investment grows at 7% but inflation runs at 3%, your &lt;em&gt;real&lt;/em&gt; return is roughly 4%. That 81,165 nominal result? In today's purchasing power, it's closer to 33,400.&lt;/p&gt;

&lt;p&gt;Still great. Still way better than a savings account. But the posts showing 10K becomes 80K are quietly ignoring that 80K won't buy what 80K buys today.&lt;/p&gt;

&lt;p&gt;See how inflation erodes purchasing power with an &lt;a href="https://boring-math.com/calculators/inflation-calculator" rel="noopener noreferrer"&gt;inflation calculator&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What This Means Practically
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Start now, not later.&lt;/strong&gt;&lt;br&gt;
Starting 10 years earlier with 5K beats starting later with 15K. The exponent does the work, but it needs time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Regular contributions dominate.&lt;/strong&gt;&lt;br&gt;
10K one-off grows to 81K in 30 years. But adding just 200/month? That's &lt;strong&gt;262,481&lt;/strong&gt;. The monthly contributions matter more than the starting lump sum over long periods.&lt;/p&gt;

&lt;p&gt;Use a &lt;a href="https://boring-math.com/calculators/savings-goal-calculator" rel="noopener noreferrer"&gt;savings goal calculator&lt;/a&gt; to figure out exactly how much you need to save monthly to hit a target.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Don't interrupt compounding.&lt;/strong&gt;&lt;br&gt;
Every time you withdraw and restart, you reset the exponent. A 30-year run beats three 10-year runs, even with the same rate, because the exponential curve is steepest at the end.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Real returns, not nominal.&lt;/strong&gt;&lt;br&gt;
Always think in real (inflation-adjusted) terms. A 7% return with 3% inflation is a 4% real return. Plan accordingly.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Bottom Line
&lt;/h2&gt;

&lt;p&gt;Compound interest isn't magic. It's an exponential function, and exponential functions are genuinely hard for human brains to estimate. Now you know the formula, the real numbers, and the inflation caveat that most explainers skip.&lt;/p&gt;

&lt;p&gt;The best time to start was yesterday. The second best time is right now.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;All calculators mentioned are free at &lt;a href="https://boring-math.com" rel="noopener noreferrer"&gt;boring-math.com&lt;/a&gt;. No sign-up, no tracking, instant results.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>finance</category>
      <category>math</category>
      <category>beginners</category>
      <category>career</category>
    </item>
    <item>
      <title>The Real Math Behind Going Freelance as a Developer</title>
      <dc:creator>Keith So</dc:creator>
      <pubDate>Mon, 23 Feb 2026 08:04:24 +0000</pubDate>
      <link>https://dev.to/kitfunso/the-real-math-behind-going-freelance-as-a-developer-2ckd</link>
      <guid>https://dev.to/kitfunso/the-real-math-behind-going-freelance-as-a-developer-2ckd</guid>
      <description>&lt;p&gt;Going freelance is one of those decisions that looks obvious on paper. You're billing 500/day instead of earning 60k/year. That's 130k if you work 260 days. Easy money, right?&lt;/p&gt;

&lt;p&gt;Not even close.&lt;/p&gt;

&lt;p&gt;I've watched developers make this leap without running the numbers properly, and the ones who struggle almost always made the same mistake: they compared their gross freelance rate to their net employee salary.&lt;/p&gt;

&lt;p&gt;Here's the math they missed.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Hidden Costs of Freelancing
&lt;/h2&gt;

&lt;p&gt;When you're employed, your salary is the tip of the iceberg. Your employer is paying:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Employer National Insurance&lt;/strong&gt; (13.8% on earnings above the threshold)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pension contributions&lt;/strong&gt; (minimum 3%, often 5-10%)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Holiday pay&lt;/strong&gt; (28 days minimum, roughly 11% of working days)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Sick pay, parental leave, training budget&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Equipment, software licenses, office space&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A 60k employee typically costs the employer 72-80k. That's your &lt;em&gt;real&lt;/em&gt; compensation package.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Freelance Rate Equation
&lt;/h2&gt;

&lt;p&gt;To match a 60k salary as a freelancer, you need to account for:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Billable Days Are Not Working Days
&lt;/h3&gt;

&lt;p&gt;There are roughly 260 working days in a year. Subtract:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;25-30 days holiday (you still want time off)&lt;/li&gt;
&lt;li&gt;5-10 days sick or personal&lt;/li&gt;
&lt;li&gt;20-40 days for admin, marketing, invoicing, chasing payments&lt;/li&gt;
&lt;li&gt;10-20 days between contracts (bench time)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Realistic billable days: &lt;strong&gt;180-200 per year&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Tax and National Insurance (UK)
&lt;/h3&gt;

&lt;p&gt;As a sole trader or limited company director, your tax structure changes completely:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Corporation tax (25% on profits over 50k via Ltd)&lt;/li&gt;
&lt;li&gt;Self-assessment tax and NI (sole trader)&lt;/li&gt;
&lt;li&gt;Dividend tax if extracting via Ltd&lt;/li&gt;
&lt;li&gt;No employer NI subsidy&lt;/li&gt;
&lt;li&gt;VAT registration (mandatory above 90k turnover)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. Benefits You Now Pay For
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Professional indemnity insurance: 300-600/year&lt;/li&gt;
&lt;li&gt;Public liability insurance: 100-300/year&lt;/li&gt;
&lt;li&gt;Pension contributions: you fund 100% now&lt;/li&gt;
&lt;li&gt;Equipment and software: 1,000-3,000/year&lt;/li&gt;
&lt;li&gt;Accountant: 1,000-2,500/year&lt;/li&gt;
&lt;li&gt;Co-working space: 0-4,000/year&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  4. The Real Minimum Rate
&lt;/h3&gt;

&lt;p&gt;Taking a 60k salary with typical benefits (pension, holiday, NI):&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Total compensation value: roughly 75,000&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Divide by 190 billable days: &lt;strong&gt;395/day minimum&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That's just to &lt;em&gt;break even&lt;/em&gt; with your old job. To actually come out ahead and compensate for the risk and instability, most advisors suggest a &lt;strong&gt;40-50% premium&lt;/strong&gt;, putting you at &lt;strong&gt;550-600/day&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Contractor vs Employee Decision
&lt;/h2&gt;

&lt;p&gt;The calculation gets more interesting when you factor in:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;IR35 status&lt;/strong&gt; (inside vs outside, massive tax difference)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Career progression&lt;/strong&gt; (no promotions, but no ceiling either)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mortgage applications&lt;/strong&gt; (lenders want 2-3 years of accounts)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Compound effects&lt;/strong&gt; (employer pension matching is free money you're walking away from)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I built a &lt;a href="https://boring-math.com/calculators/contractor-vs-employee-calculator" rel="noopener noreferrer"&gt;contractor vs employee calculator&lt;/a&gt; that handles the full comparison, including tax differences, pension, insurance, and bench time.&lt;/p&gt;

&lt;h2&gt;
  
  
  Setting Your Rate
&lt;/h2&gt;

&lt;p&gt;Once you've decided to go freelance, pricing is the next trap. Most developers either:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Undercharge&lt;/strong&gt; because they anchor to their salary&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Overcharge&lt;/strong&gt; and can't find work&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Don't adjust&lt;/strong&gt; for market, location, or specialization&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The formula I recommend:&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;```n Target annual income (post-tax)&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;All business costs&lt;/li&gt;
&lt;li&gt;Tax provision (set aside 25-30%)&lt;/li&gt;
&lt;li&gt;Risk buffer (10-15%)
= Required gross revenue&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Required gross revenue / Billable days = Day rate&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;


A [consulting rate calculator](https://boring-math.com/calculators/consulting-rate-calculator) makes this concrete. Plug in your target take-home, expenses, and tax situation, and it gives you the day rate you actually need.

For US readers, the W2-to-1099 conversion is similarly brutal. Self-employment tax alone is 15.3%, and you lose employer healthcare contributions. A [freelance rate calculator](https://boring-math.com/calculators/freelance-day-rate-calculator) that accounts for these differences is worth using before you hand in your notice.

## When It Makes Sense

Freelancing *does* make financial sense when:

- Your skills command a rate premium (specialist &amp;gt; generalist)
- You can maintain 80%+ utilization (strong network or niche demand)
- You're disciplined about saving for tax and retirement
- The flexibility has genuine lifestyle value to you

It doesn't make sense when:

- You're optimizing purely on gross numbers
- You haven't built a network yet
- You need mortgage approval in the next 2 years
- You undervalue employer benefits

## Run Your Own Numbers

Generic advice only goes so far. Your situation has specific variables: your tax bracket, your employer's pension match, your realistic utilization rate, your insurance costs.

Tools that helped me think through this:

- [Contractor vs Employee Calculator](https://boring-math.com/calculators/contractor-vs-employee-calculator) - side-by-side comparison with full tax treatment
- [Consulting Rate Calculator](https://boring-math.com/calculators/consulting-rate-calculator) - work backwards from your target income
- [Freelance Day Rate Calculator](https://boring-math.com/calculators/freelance-day-rate-calculator) - quick rate calculation with expense factoring

The math isn't complicated. But it is easy to get wrong if you skip the boring parts.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>freelancing</category>
      <category>career</category>
      <category>webdev</category>
      <category>beginners</category>
    </item>
    <item>
      <title>I Built 125 Free Calculators for Lifes Boring Math</title>
      <dc:creator>Keith So</dc:creator>
      <pubDate>Wed, 18 Feb 2026 09:57:54 +0000</pubDate>
      <link>https://dev.to/kitfunso/i-built-125-free-calculators-for-lifes-boring-math-13j2</link>
      <guid>https://dev.to/kitfunso/i-built-125-free-calculators-for-lifes-boring-math-13j2</guid>
      <description>&lt;p&gt;Have you ever tried to figure out how much alcohol to buy for a wedding? Or what your freelance day rate should be? Or whether its cheaper to buy or rent?&lt;/p&gt;

&lt;p&gt;I kept running into these boring math problems - not hard, but tedious enough that Id open a spreadsheet, fumble with formulas, and waste 20 minutes on what should take 30 seconds.&lt;/p&gt;

&lt;p&gt;So I built &lt;a href="https://boring-math.com" rel="noopener noreferrer"&gt;boring-math.com&lt;/a&gt; - 125 free calculators for the everyday math nobody wants to do by hand.&lt;/p&gt;

&lt;h2&gt;
  
  
  Whats in there
&lt;/h2&gt;

&lt;p&gt;The calculators cover everything from personal finance to party planning:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Money stuff:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://boring-math.com/calculators/compound-interest-calculator" rel="noopener noreferrer"&gt;Compound interest calculator&lt;/a&gt; - see how your savings grow over time&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://boring-math.com/calculators/buy-vs-rent-calculator" rel="noopener noreferrer"&gt;Buy vs Rent calculator&lt;/a&gt; - the actual math behind the biggest financial decision most people make&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://boring-math.com/calculators/freelance-day-rate-calculator" rel="noopener noreferrer"&gt;Freelance day rate calculator&lt;/a&gt; - convert salary to day rate accounting for tax holidays and pension&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://boring-math.com/calculators/savings-goal-calculator" rel="noopener noreferrer"&gt;Savings goal calculator&lt;/a&gt; - how much to save monthly to hit your target&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Life stuff:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://boring-math.com/calculators/wedding-alcohol-calculator" rel="noopener noreferrer"&gt;Wedding alcohol calculator&lt;/a&gt; - dont run out, dont overbuy&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://boring-math.com/calculators/bbq-calculator" rel="noopener noreferrer"&gt;BBQ calculator&lt;/a&gt; - meat per person, sides, the works&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://boring-math.com/calculators/baby-cost-calculator" rel="noopener noreferrer"&gt;Baby cost calculator&lt;/a&gt; - the real first year costs&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Health and utility:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://boring-math.com/calculators/bmi-calculator" rel="noopener noreferrer"&gt;BMI calculator&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://boring-math.com/calculators/calorie-calculator" rel="noopener noreferrer"&gt;Calorie calculator&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://boring-math.com/calculators/co2-calculator" rel="noopener noreferrer"&gt;CO2 calculator&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And about 110 more.&lt;/p&gt;

&lt;h2&gt;
  
  
  The tech
&lt;/h2&gt;

&lt;p&gt;Built with &lt;strong&gt;Astro&lt;/strong&gt; + &lt;strong&gt;Preact&lt;/strong&gt; + &lt;strong&gt;Tailwind CSS&lt;/strong&gt;. Static site deployed on Cloudflare Pages.&lt;/p&gt;

&lt;p&gt;Each calculator is a single .astro page with an interactive Preact component for the actual calculation. No backend, no database, no accounts. Just math.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why Astro?&lt;/strong&gt; Perfect for content-heavy sites with islands of interactivity. The calculators need JavaScript but the surrounding content - explanations, FAQs, related links - is pure HTML. Astros island architecture means you only ship JS where you need it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Performance:&lt;/strong&gt; Lighthouse 90+ across all pages, local fonts, lazy-loaded interactive components.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I learned building 125 of these
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Every calculator needs context, not just inputs.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A compound interest calculator with just the math is boring. But add a worked example showing what happens if you start 5 years earlier? Now its useful content that Google actually wants to rank.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Related calculators create rabbit holes.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Someone using the savings goal calculator probably also wants the compound interest calculator. Internal linking between related tools keeps people on the site and helps SEO.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Schema markup matters.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Every calculator has WebApplication + FAQ + BreadcrumbList structured data. Tedious to set up but Google Search Console immediately started showing richer impressions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. The long tail is real.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Nobodys outranking the big sites for mortgage calculator. But additional dwelling supplement calculator Scotland? Those niches have real search volume and almost no competition.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it out
&lt;/h2&gt;

&lt;p&gt;The whole thing is free, no sign-up required: &lt;strong&gt;&lt;a href="https://boring-math.com" rel="noopener noreferrer"&gt;boring-math.com&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If youve got a calculator idea I havent built yet, drop it in the comments - always looking for the next piece of boring math to automate.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>sideprojects</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
