If I unplug my MacBook and store it untouched, how long before it can no longer boot or I can't get my data back?
I have an original iMac Bondi Blue in my garage. Every year I take it out and see if it still boots. It still does. That's a Mac that is almost 18 years old. And it sits in a garage that gets really hot in the summer. Eventually, the hard drive will seize up and it won't boot, but I imagine if I booted it from an external drive (assuming I could configure one with the proper software), it will probably continue to boot up.
So the answer really is, no one knows. If you leave it in a drawer untouched, there is no reason to believe it won't boot up properly 20 years from now or more. Obviously, if you really don't touch it or move it in that amount of time, several things could happen: bugs such as spiders, small roaches, or ants could find it a cool place to hang out, and if enough of them do, then it would probably cause some issues that could prevent it from booting.
The other thing to consider is to make sure you have a working power adapter. It isn't going to hold a battery charge for that long, and you will need a working adapter to power it up. By that time, the batteries themselves would probably be useless anyway, and if they leak, that would be another thing that could cause the unit to be unusable. Just remember that 20 years from now the method for powering devices will very likely be a lot different than it is today, so you will lose the ability to boot up that 2015 MacBook the moment you no longer have a working adapter.
Mac help Batteries and charging Apple ID, iCloud and backupsIf this helped you, consider buying me a slice of pizza to help keep the site running. If this solved a big problem for you, consider buying me the whole pie!
Need help with this?
I help people in New Orleans and online with Apple gear, websites and more. Contact me or see more answers in the Knowledgebase.