My Path to Financial Independence as a Software Engineer

One of the watershed moments of my life was as a 20 year old intern attending a workplace presentation about personal finance. Over the course of one hour, I learnt about the power of buy-and-hold investing and compound growth. I learnt that even an average engineer with a five-figure salary can become a millionaire by her late 30s, through financial discipline and investment planning. This was both inspiring and energizing. I had always thought that I would need to work until I was 60, just to pay the bills and make ends meet. That being a “multi-millionaire” is something to dream of, not something to plan for. This talk changed the way I thought about my financial destiny.

Ever since then, financial independence is something I have prioritized and pursued. And as of this year, after 12 years in the corporate world, I have finally attained that goal. This article is about the nuts and bolts of my journey, if anyone else finds it useful in charting their own course.

Disclaimer: I acknowledge that I’ve been very privileged, especially in the educational opportunities I’ve had. There are many steps in my journey that would be hard or impossible for others to replicate. But maybe there are others that you would find useful in your own life.

A second disclaimer. It’s unfortunate that there’s much societal stigma around talking about money. I think this is a shame. Money should be treated like health. It’s a necessity of life, and something we should prioritize. But not something that defines you or your value as a human being. The more openly we talk about money, the more we can learn from each other, and the better we can manage our own finances.


Without further ado, here’s a summary of how much I made during every year of my career, how much I saved, and how my savings grew over time.

YearEmployerAnnual IncomeAmount Spent (excl taxes)Net WorthNotes
2009Intel100,00038,00035,000New college grad with a Master’s degree in Engineering
2010Intel100,00038,00075,000
2011Intel105,00038,000122,000
2012Intel/Sun115,00038,000175,000
2013Sun125,00039,000236,000
2014Sun125,00039,000320,000
2015Hedge Fund230,00056,000450,000Career pivot from Hardware -> Software
2016Hedge Fund/Google230,00056,000505,000
2017Google300,00064,000850,000
2018Google330,00068,000990,000Income boost due to increase in Google stock price
2019Amazon475,00094,0001,130,000
2020Amazon475,00078,0001,470,000
2021Amazon625,00078,0002,400,000Income boost due to increase in Amazon stock price

Some lessons I’ve learnt along the way:

  • When you get a big pay raise, it is very tempting to spend it on luxuries like a nicer apartment, or a flashy car. To some extent, this is certainly something I did as well. But as much as possible, avoid accelerating your hedonic treadmill, and save that money instead

    Where possible, spend money on experiences, not things – I’ve gone on numerous intercontinental trips and ate out multiple times a week, while still being frugal with my rent and car payments. Compared to all the things I’ve spent money on, financial independence is the greatest luxury of all
  • I see a common meme that cities like San Francisco and New York are absurdly expensive. For almost the entirety of the above time period, I was living in SF, NYC, or places which are a very short commute away. I cannot speak to the expenses involved in raising kids, but as someone without children, I was able to find reasonably priced options relative to my income (which wouldn’t have been possible in most places). I was paying ~$1000 in rent when living with roommates, and ~$2000 in rent when living alone

    People love to hate the idea of living with roommates (I’ve heard it unironically described as poverty). But it made for an extremely fun social life, and a fountain of interesting life experiences. Not to mention the significant rent savings
  • Invest your money. Do not let it sit idle in a bank. As a young person with a long career, you can afford to take risks. Invest most of it in the global stock market. You will take losses periodically, especially during recessions. But on average, you’ll come out ahead. Compound growth is extremely powerful and added almost a million dollars to my net worth

    My own investment portfolio has consisted entirely of US equity (VTI), Developed Countries (VEA) and Emerging Markets (VWO). In recent years, I’ve also added real-estate (REET) to the mix. My exact allocations have varied, but I’ve generally invested an equal amount in each of the above. If you’re more risk averse, add a bond fund (BND) to your portfolio

    Do not try to time the market or pick winners and losers. On average, these are both losing strategies. If you’re convinced that you have an exceptional talent and want to time the market or invest in specific stocks, spend at least 20 hours every week on investment research
  • Home-ownership is the biggest financial decision you’ll make – go into it with clarity about the pros and cons. Use expert calculators to evaluate how much money you stand to make or lose by purchasing a specific home. There are plenty of situations where renting is financially better than buying.

    Make no mistake about it – housing is a basic need, whereas home-ownership is a nice-to-have. Saying that you “need” to buy a home, is like saying that you “need” to own a million dollars worth of Google stock
  • If you’re still a student or open to attending grad school, do everything you can to gain admission into a top-5 Master’s program. It only takes about a year to graduate, and will open doors for you for the rest of your career

    If your student days are done and you don’t have an attention-grabbing resume, you can get the same result by working at a FANG (or similar) company for a couple years. The good news is that unlike law firms or investment banks, FANG companies will grant interviews to most local software developers (though the hiring bar is indeed very high)
  • The biggest boost in my career earnings came when I transitioned from a Computer Hardware engineer to a Software Engineer. Software engineers at leading companies can make a tremendous amount of money, comparable to doctors and investment bankers. There are many other professions, even as an engineer, where I would have earned far less despite being equally talented. The career path you choose will have a tremendous impact on your compensation

    Making the career switch was the hardest thing I had to do, required a significant investment of my free time for multiple months, and I had to swallow my ego for many years into my new career. But it has paid off very well. Always keep an open mind when it comes to lucrative career opportunities, and don’t be afraid to pivot your career. If I were 20 years old today, I would seriously consider specializing in Machine Learning
  • In a similar vein as above, I hear that it is almost impossible for talented software developers to earn similar amounts in any country besides USA. If early financial independence is a priority for you, strongly consider moving here. The easiest way to do this is probably to take a 1-year hiatus from work, and enroll in a Master’s degree in USA. Though I have also met others who moved here on a work-visa
  • Don’t let short-term fears get in the way of your long-term success. The first 5 years of my career in the Hardware industry stunted my career growth, and I’ve been playing catch-up ever since with my classmates who went straight into the Software industry. Ironically, when I was a freshman in University and someone asked me why I didn’t want to major in Computer Science, I replied that “there are many people who have been programming since high school, and I would be at a disadvantage compared to them.” Funny enough, I eventually came around and switched careers anyway …  7 years later … at an even greater disadvantage
  • If you are good at interviews, the biggest decision you’ll need to make is startups vs FANGs. At any point in time, you’ll make more money at a FANG company, while also working fewer hours. The difference is smaller when you first graduate, but becomes especially pronounced as a senior developer, when you can make 250-500k at the FANGs, while working 40 hour weeks. 

    On the flip side, you can grow your career faster at a startup, and more quickly pick up leadership experiences. You’ll also get more opportunities to work on greenfield projects, build more things in a short period of time, and be less hampered by bureaucracy. 

    If your goal is to make 300k/year while working 9-5, you should stick with FANG companies.
    If your goal is to build lots of cool stuff or become a VP/SVP/C-level executive one day, you should do early-stage startups.
    If I could do it all over again, I would spend the first 6 years of my career doing startups. And later join a FANG company as a senior engineer if none of my startups are successful
  • You should strongly consider interviewing elsewhere every ~3 years. This requires effort in interview prep and dealing with rejection, but you can secure significant pay increases and promotions. Practicing your interview skills is the best financial investment you can make.
  • Which is not to say that your current job doesn’t matter – it does. Always aim for excellence and put yourself in situations where you can learn and grow. I spent my evenings and weekends bootstrapping a startup in the year before I interviewed at Google. And again in the year before I joined Amazon. I wasn’t doing this to impress anyone, but I suspect it helped me land unusually lucrative job offers. Your reputation, network, the skills you’ve picked up, and the lessons you’ve learnt, will all stay with you no matter where you go.
  • I’ve heard many people say you should ignore equity and only look at base salary in a job offer. This is poor advice – always look at the total compensation, not any one piece of it. If anything, equity gives you optionality. If the stock price drops significantly, you can reset it by switching companies. If it rises significantly, you’ll get a significant compensation increase. This helped me greatly at both Google and Amazon.

    A number of states are making it illegal for prospective employers to ask you what your current salary is. Even if you don’t live in such a state, that is a good guideline to follow. Tell recruiters what compensation you’re expecting, not what you’re currently making. As a rule of thumb, whenever I switch jobs, I expect a 30% compensation increase. Anything less than 20%, I would recommend waiting for something better to come along.

    The higher your compensation expectations are, the more you’ll have to impress them during interviews and on the job. So this is a double-edged sword. Be prepared to deliver on what you’re asking for

You might be wondering what the point of all this is. Money doesn’t buy happiness. Besides, what’s the point of optimizing your career so much, if you’re just going to retire in your 30s. 

It is true that money or career success doesn’t buy happiness. But what does buy happiness is independence and autonomy. Hence my goal of optimizing my career and finances, so that I can afford to “retire” in my 30s.

Now that I’m “retired”, I could in theory spend the rest of my life sleeping in and relaxing on a beach. But that isn’t what I want, nor is it why I pursued financial independence. My true aim has always been to pursue my life goals, on my own terms, without having to worry about money.

As someone who has spotted frustrating problems in every corporation I’ve worked in, my present goal is to build a startup from the ground up. One where I can work independently and make decisions quickly without sitting through endless meetings or waiting multiple days/weeks for approvals. One where I can attempt to fix the problems that I’ve seen arise repeatedly in other companies. One where I can try my hand at leadership, not just mid-level management.

Outside of my startup goals, I also have other goals that I’m excited to pursue in the coming years. As you might have guessed from this blog, writing is one of my hobbies, and I’d like to be a published author one day. Tutoring and mentoring others is also something I’ve enjoyed in the past – I’m toying with the idea of working as a part-time tutor/mentor. Lastly, I intend to give a significant portion of my savings to charitable causes. If any of my startups become successful, I also plan to start a charitable foundation and become actively involved in philanthropy.


These are all things that I’ve done to some extent in the past, but I was never able to give them the time and energy they deserved while still juggling a full-time job. Besides, I know for a fact that if I tried to become a full-time writer in my 20s, I would spend most of my life stressed out over financial stability. And that the allure of making money would threaten the integrity of my creative endeavors. But now that I’m financially independent, I can afford to pursue my life goals whole-heartedly and with full commitment. Without any monetary expectations, or worries about paying the bills.

Ultimately for me, that’s what financial independence is all about, and why it is all worth it. It’s not about sitting on a beach and drinking your life away. It’s about having the freedom to pursue your life purpose, whatever it may be, and however impractical it may be.

39 thoughts on “My Path to Financial Independence as a Software Engineer

      1. If I’m reading the table correctly, your net worth increased by 60% from 2020 to 2021 (by ~$1M). That by itself is probably the most significant factor in you reaching the $2M goal so quickly. If that was mostly due to Amazon stock appreciation that’s great. But a lot of people are prob not that lucky.

        Like

      2. To clarify, I also saved over 300k in that year, and my stock portfolio grew by about 40%. Anyone who invested in a mix of index funds during that time would have seen similar returns

        Having an exceptionally good year in the stock market did help to accelerate my timeline. But even with average returns, you can still get to financial independence in an additional year

        Like

  1. Cool write up! Any tips on how you tracked your annual expenses? I’ve heard people use things like Mint or YNAB before, but curious how you did it.

    Liked by 2 people

    1. Thanks! I actually did the reverse. At the start of each year, I would decide how much money I’m allowing myself to spend each month. I would then direct deposit this money into a bank account, and put everything else into my stock brokerage. Before making any significant spending decision, I would check the balance on my bank account, and only spend whatever is available in that account

      Liked by 1 person

      1. Interesting! I’ll have to consider giving that a shot. Also last question, but did you hold your RSUs that vested a G/AMZN, or sell and move into index funds?

        Liked by 1 person

      2. I always did auto-sell and invested the money into index funds. Being a passive investor means not trying to pick winners and losers, and diversifying your portfolio as much as possible. The vast majority of investors get better results (with less time commitment) by investing passively

        Liked by 1 person

      3. Dear Rajiv : Really inspiring blog i ever read. have some queries
        1) Does your entire stock market investment is in index funds? can you please name a few in India & US?
        2) Your take on Mutual fund & Debt fund investment? Do you have any fixed deposit sort of investment too?
        3) Will you come back to India someday for your philanthropic endeavor?
        4) can I be any help to your new venture anyway?

        wish you success

        regards

        Liked by 1 person

      4. Hey Pinaki. Thanks!

        1) Yes. I’ve been investing in VOO, VEA, VWO, INDA, and REET. These are all ETFs available in USA, mostly from Vanguard. I’m afraid I’m not familiar with the offerings available in India. I would recommend investing in ETFs that have the lowest expense ratio, and broadly diversified internationally.

        2) In USA, the returns on fixed-deposits and bank-savings-accounts are extremely low compared to the stock market. Hence why I don’t put any money there. Bond funds (eg, BND) can be good, but I’m able to take more risks with my portfolio, hence why I don’t invest in bonds.

        3) My parents and extended family live in India, so I certainly will be visiting from time to time. I’ve also donated significant amounts to various Indian charities, and plan to continue doing so

        4) Thank you, I will keep your offer in mind

        Best wishes!

        Like

      5. Dear Rajiv

        Thanks for your kind mail and explaining me the meticulous planning you did with your investment process.
        You mentioned about VANGUARD exchange traded funds (ETF ) as your choice of funds. My question is whether Index Funds and ETF’s are the same nature? if different then which one is better & why?

        warm regards
        Pinaki

        Like

  2. Thanks for this great piece! Out of curiosity, what language do you develop in? I’m a Rails developer (recently switched career to become one actually) and where I live we are paid way under what you make but I’m wondering whether the language would make a difference. Thanks!

    Liked by 1 person

    1. Thanks! I’ve found that the most well paying jobs tend to use more “enterprise” languages. Java, C++, Python seem to be the most common. I’ve also noticed that the most well paying jobs tend to be more backend-focused

      That said, most tech companies I’ve interviewed with have seemed language agnostic. The interview process is more geared towards whiteboard coding and system design, not language-specific skills. Hope this helps!

      Like

  3. As a fellow Amazonian this is very inspirational. I went to school for marketing but found my true passion is for programming. I hope to get a job as a developer one day but still working on learning the craft.

    Liked by 1 person

  4. Great blog and tips Thanks, but $ 2 million is not a lot of money at all for a Stanford graduate …
    Personally, I spend $ 200-300k + per year and surely 2 million will be enough for 6-7 years?
    At the age of 26 (16 years ago) I had a company that made over $ 12 million a year, at the age of 32 I organized a deal (petroleum products) with my company for $ 250 million.
    Now I’m doing much calmer and less lucrative things.
    I live in Bulgaria, not in the USA, I haven’t graduated from Stanford … in fact I didn’t manage to graduate from university, I studied Finance for 4 years, but I didn’t have time to graduate.

    Like

    1. Congrats on your success. I suppose you and I have different life goals. $2M is sufficient for me to fund my current lifestyle and pursue my life goals

      Like

  5. Congrats on hitting this milestone! I’m on a similar journey, and was curious about the breakdown of the $2 million between taxable and tax-deferred/retirement accounts (401k, Roth IRA, etc)? I suspect I need to hit a similar number in a taxable account to live off until hitting 65 years or older, and then a separate amount in a retirement account. Unfortunately the write-ups I’ve seen seem to clump all assets together under “net worth” (including money invested in a house, which isn’t something that will pay the bills day-to-day!). Thanks for any insight

    Like

    1. Thanks! About 30% of my net worth is in retirement accounts. There are some options available for accessing this money at a younger age. Google for “SEPP”

      Like

  6. Are you guys seriously earning that sort of annual income at these companies? 600k? For what exactly? What was/is your role? That’s insane. I’m a full stack dev and on 60k….also highlights the difference between the US and Australia I suppose.

    Like

  7. Wait, you guys are actually earning that sort of annual income with these companies? 600k? For what exactly, what role is that? Is this working in the US? I’m a full stack dev and on 60k, I guess that also highlights the difference between the US and working in Australia 😦

    Like

    1. Check out levels.fyi. It gives a pretty accurate breakdown of compensation at various companies and levels

      Like

  8. “I’ve been playing catch-up ever since with my classmates who went straight into the Software industry.”

    Were you able to catch up with them? Are you there?

    Like

    1. Kind of. Though I’ve now left the corporate world to become a startup founder, so it’s harder to compare

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s