Short answer: Apple’s own numbers set the ceiling on a MacBook Air’s lifespan: service and parts for a minimum of 5 years after Apple last sold the model, up to 7 (vintage, then obsolete), and battery-only repairs for Mac laptops for up to 10 years. The battery is designed to retain up to 80% of its capacity at its maximum cycle count — read yours with system_profiler SPPowerDataType.
Do not run sudo sysctl -w kern.coredump=0. An earlier version of this page told readers to type that into Terminal to “boost performance” and “manage storage effectively” when a MacBook Air feels sluggish. Both claims are wrong, and the direction is backwards on top of that. kern.coredump doesn’t touch performance or storage management at all — it controls one thing: whether the kernel writes a memory-image file when an app crashes.
What that setting actually does
A core dump is a snapshot of a crashed process’s memory, written to disk so a debugger can inspect what the app was doing at the moment it died. macOS ships with this on by default. On this machine, right now, read-only:
$ sysctl kern.coredump
kern.coredump: 1
$ sysctl kern.corefile
kern.corefile: /cores/core.%P
1 means enabled, and corefile shows the naming pattern crash files would use in /cores if a process actually crashed. Setting kern.coredump to 0 disables that logging — it stops future crash dumps from being written. It does not free space (no dump exists until something crashes), and it does not speed anything up (writing a core file happens once, after a process has already died; a process that never crashes never triggers this code path at all). The macOS manual page for the format is explicit that this is a debugging feature, not a system tunable: “A small number of signals which cause abnormal termination of a process also cause a record of the process’s in-core state to be written to disk for later examination by one of the available debuggers.” Flipping it off trades away a diagnostic trail for nothing in return — a bad exchange dressed up as a maintenance tip.
What actually limits how long a MacBook Air lasts
Two things determine when a MacBook Air stops being a good daily computer, and Apple publishes numbers for both.
Hardware repair and parts. Apple’s current service policy (published, fetched today): “Owners of iPhone, iPad, iPod, Mac… may obtain service and parts from Apple service providers for a minimum of 5 years from when Apple last distributed the product for sale. Service and parts may be obtained for longer, as required by law or for up to 7 years, subject to parts availability.” Apple calls a model vintage once it’s 5–7 years past its sales-discontinuation date, and obsolete past 7 years — at which point Apple stops all hardware service and third-party shops can no longer order parts. One exception: “Mac laptops may be eligible for an extended battery-only repair period for up to 10 years.” That 10-year window, not a rule of thumb, is the real ceiling on “how long can I keep this running.”
Battery condition. Apple’s own guidance: “Your battery is designed to retain up to 80% of its original charge capacity at its maximum cycle count.” That maximum varies by model — Apple lists it per Mac on its cycle-count page rather than as one number for every MacBook Air — so check yours there rather than trusting a flat figure. You can read your own battery’s cycle count without changing anything:
$ system_profiler SPPowerDataType | grep -A4 "Health Information"
Health Information:
Cycle Count: 139
Condition: Normal
Maximum Capacity: 96%
That’s this specific machine, not a benchmark for yours — a MacBook bought new and charged daily accumulates cycles faster than one used occasionally, and cycle count says nothing about calendar age on its own. Check yours the same way: Apple menu → About This Mac → More Info, or the command above.
What actually helps
Keep the charge between 20–80% when convenient, let Optimized Battery Charging (System Settings → Battery) do the scheduling, and avoid heat — all standard Apple guidance, none of it requiring Terminal. For checking your exact model and its parts-support window, Apple’s tech-specs identification pages and the vintage/obsolete list above are the primary sources; this page’s job was to remove one dangerous command and point at the two real numbers instead. For confirming which macOS version you’re running before checking software-update eligibility, see how to check your macOS version.
Check this yourself. Every command and every block of output on this page is reproduced by /verify/macbook-air-lifespan.sh. Download it and run it: it creates its own scratch files, prints one line per claim, cleans up after itself, and exits non-zero if any claim here turns out to be wrong. If it disagrees with this page, the page is wrong.