Freelancing may work well for the top 5% or 10%, but it's not a good thing for most.
The standard formula I recommend to a new freelancer is (what-you-would-make-as-salary / 50 / 5 / 8 * 2) = hourly rate. Anything less is undercharging. So if you would make 100k in salary, you can’t charge less than $100/hour. This is an absolute floor.
If you follow that formula, you’ll be able to cover the healthcare, tax accountant, gaps between work, and other expenses and still make your base salary.
But the ceiling is much higher. For a company, hiring a full time employee is just too much risk. You have a few hours of interviews to determine if they will be a good match, and if you are wrong, it is an extremely expensive mistake. Likewise if things slow down, you’ll have no flexible capacity. Freelancers are a dream come true.
Also, in my experience, companies do not think of freelancer rates in the same way as salaries. Freelancers are not on the organizational chart as it were. Whereas standard HR hires and the attached salaries come with a load of political and ego driven baggage, freelancers are thought about more like buying a new office printer. If there is a need and the budget, the company will hire you and you might be making 3x what the project lead makes.
I think a lot of people have a mistaken impression that freelancing is hard to pull off. In my experience, landing a contracting gig at a big hourly rate takes roughly the same amount of effort as it takes to interview and land a full time job. If you can land a full time job, you can probably freelance.
Those salaries _can_ be found in other areas of the country, but they are almost completely concentrated to tech hubs of the country. Lots of cities throughout the country don't have these jobs.
I graduated from a fairly average state university with a BSCS in 2002 and joined the Army. My first software engineering job (which was hard to land given I had gone 4 years since college doing something completely different) paid $55k in 2006. I crossed the $100k threshold in 2012.
Though, I'll admit the raises haven't been as generous the last few years, and I did have to move a few times for jobs :)
But I really don't think my life has been particularly privileged or out of the ordinary for a reasonably competent developer (and many here on HN who do live in tech hubs make quite a bit more than I).
Isn't that the point of the OP? He already has low-risk, constant-reward situation and he's sick of it - obviously, he wants more risky, more rewarding scenario.
I'll admit, there's an element of risk aversion holding me back. That and I simply can't afford to start at the bottom and work for peanuts in order to 'build a reputation' as a freelancer.
I managed to save about $20,000 and freelanced the same way the next year or so, but charging $50/hr. Money steadily dropped, but it was mostly due to taking fixed-bid contracts, not tracking my time well, estimating done dates and then failing to bill after the deadline. So try not to give time estimates (which are often by by a factor of 3-10 or more), and if you do, be sure to bill if you go over. They are paying for the time it takes you to solve a problem, not your ability to guess at unknowns that can't be known until you've done them.
After that, I got a great gig at a local agency. If I find myself being a contractor again, I would charge 1.5-2x my desired hourly pay. In internet tech now, that's probably $75-150k/yr, $35-75/hr, even in rural areas, so a $75/hr freelance rate is probably a good minimum.
In other words, there's not an easy way that I could see to survive long as a contractor by taking a pay cut from your current salary. It's better to think in terms of charging twice as much as you're paid now, but finding work half as often. Which is generally worth it because it gives you time to work on your skills, do side projects, etc. I would not take other advice to moonlight, because a programming job by itself generally tends towards burnout.
And don't fall for nonsense about 'build a reputation' as a freelancer (mostly this is an attempt to reduce the rate you'll accept). You skills and experience speak for you, regardless of whether contract or full time.
What unique skills do freelancers have that you don't? Finding new gigs (not important to someone hiring); filing taxes (not important to someone hiring); having an accountant (not important to someone hiring); owning/operating a corporation of some form (not important to someone hiring).
In our free market economy, there will always be a system where someone hires you to create value, which costs less than it makes them, in the end. If you want a bigger slice of that pie, you need to make it a viable business case. Hiring a top freelancer to create value, without the hassle for the employer, is worth a markup. Being scarce helps too.
To me, it sounds like your main issue is that you feel you don’t get enough of that added value you bring. If normal compensation schemes don’t cut it for you, you surely must be able to ask a major hourly rate as a freelancer, or a royalty.