Solo on my Pearson 424 off of Culebra a few years ago
Tl;dr: $20-25k+ (purchase and refit) for a liveaboard condition 40 foot sailboat
40-50k+ (purchase and refit) for a 40 footer that's safe and comfortable at sea
My boat was my grandparent's boat, so I had a value survey done that determined its worth was $15k, to cover my bases with family perceptions of its worth. In reality, that number should have been $11,500 - survey missed the seized v drive. I've seen two of the same model listed at less than 20k in the 4 years since, and plenty of other 40-something projects for under 20k. I can expand on where to find these if anyone is interested in the comments.
The FUNDAMENTALS of a boat - for ocean sailing - aren't that expensive. Through hulls, standing rig, steering cables, rudder, and sails are the necessities. Through hulls and rudder inspection are usually just labor. Standing rig, full replacement including chainplates and mast step, is about $5k. Steering cables are diy and a few hundred, max. After all that, the engine - the most expensive part. It's NOT an essential, but it's very hard to coastal sail without one, and most people reading this aren't jumping offshore immediately. Make sure you have something solid in there because replacement is north of $10k.
I did my first round trip (New England to Florida and back) having spent $400 for solar panels, $400 for a charge controller, $800 on batteries, $3500 on a v drive, $400 on a parts kit for the engine (fundamental hoses and stuff), $80 for a starter, $500 in yard fees, $200 on a through hull, and $100 on fiberglass (I got rid of a through hull), and a $400 anchor.
So my first trip expenses into the boat, including purchase, were $23,000. This is a realistic price point for barebones liveaboard and coastal sailing on a 40' sailboat.
I'm in about a total of 60k now, 5 years later, which comes out to less than rent most places I've lived (CT, NY, Block Island, Sag Harbor, St Martin, St Thomas, West Palm Beach, Key West). There's a lot of money in stuff like hose clamps, housewares, consumables, tools, and mistakes that won't be reflected here (I bought $1500 davits, sold for $800 and bought a $2k arch, for example), but I'll give everyone my idea of an ideal boat and market prices (often used, but relatively easily achieved) for each.
Used main - 12oz dacron, partial battens - $600
2017 - New standing rig (wire, swages, turnbuckles, toggles) - $3500
2017 - Mast in/out, mast step, chainplates (many old boats need all this done, it'll last 20+ years) - $2400
Used staysail - $200
Used Spinnaker (asym) - $1000
2020 - New furler - $2000
2020 - Used 10+ft rib, 15hp outboard - $2k
2018 - Arch for solar, radar, lifting the outboard - $2k
2020 - New (blemish) stove - $1k
2017/18 - New propane line, solenoid, tank - $300
2016 - new Vhf with ais receive - $300
2020 - used Radar + iPad for display - $1000
2020 - Ais - $700
2020 - Windlass - $1500
2020 - Yard fees - $1000
2020 - Cutlass bearing, dripless shaft kit - $1000
2020 - Used Feathering prop - $1500
2018 - New toilets - $150 x 2
2019 - New portlights - $1500
2016 - Batteries - $800
Hard dodger (not done, but this will cost thousands)
2020 - Used Self-steering windvane - $2k
2016 - Anchor - $400
Used Chain - $500 (some of these used items are estimates - I found my 200ft 3/8 chain for free but you won't always be that lucky)
Total - $27,500
Total including purchase - $43,000
$43,000 would be my idea of a low end number for comfortably and safely cruising a 40 foot sailboat bluewater/offshore
Do I know people doing it for less? Yes. But I know a lot more doing it for more than double the price, and insisting it's not possible for less.
Living costs are the same as what you do ashore. It's much more variable based on your choices (anchor out vs marina, rice and beans vs eating out) than anything particular to boat life.
There's a privilege question here - how does a NORMAL person do this?
That answer, financially speaking, is to not pay rent. With the boat, you're on anchor 330 days a year. Slips are expensive. Before the boat, I didn't pay rent and saved by living between a van and with my parents (privilege - many don't have the latter option. You need a substitute, and a good one is to live rent-free in a secure, place without natural disasters. Florida winters, New England summers is a good start for living aboard).
Also, while I haven't had to have a financial bailout and I am very conservative, it is there. If I lost the boat I'd have somewhere to go. It's impossible to say if I'd have been able to stomach the times I left for the Caribbean with less than $1000 without this. I know plenty who have, it's possible, but YOU have to decide your own appetite for risk. Mine is low.
My mom didn't have access to sailing but loved it, and put me in optis as a kid. I taught myself to run big boats and ocean sail, but that baseline knowledge is privilege. If you don't have it, you need to find a substitute for it. Crewing in keelboats and buying a $500 laser to skipper and race is a good substitute.
Happy to field any and all questions about any of this - this is MY way of doing it. There are other right ways.