MongoDB upgrade path from 5.0 to 8.0 and 9.0, with end-of-life dates
MongoDB 5.0 and 6.0 are past end of life. This guide gives the dates from MongoDB's own lifecycle page, the order you must upgrade in, what changes at each step, and what happens if you stay put.
45 minutes with an engineer: we review your workload and sketch the design.
- ✓Dates from MongoDB's lifecycle page, 4 Dec 2026
- ✓5.0 and 6.0 already ended
From MongoDB 5.0 you must upgrade one major release at a time: 5.0, 6.0, 7.0, then 8.0, with the feature compatibility version raised at each step. MongoDB's lifecycle page lists 5.0 end of life as 31 Oct 2024 and 6.0 as 31 Jul 2025. Release 7.0 ends 31 Aug 2027, 8.0 ends 31 Oct 2029, and 9.0 ends 31 Oct 2031. Checked 4 Dec 2026.
Customers
Partners
When does each MongoDB version reach end of life?
On MongoDB's lifecycle page, 4.4 ended 29 Feb 2024, 5.0 ended 31 Oct 2024 and 6.0 ended 31 Jul 2025. Release 7.0 ends 31 Aug 2027, 8.0 ends 31 Oct 2029 and 9.0, released September 2026, ends 31 Oct 2031. MongoDB says each major version is supported for five years.
| Version | Released | End of life | Status on 4 Dec 2026 | Atlas Dedicated end of life |
|---|---|---|---|---|
| 4.4 | Jul 2020 | 29 Feb 2024 | Ended | Not listed |
| 5.0 | Jul 2021 | 31 Oct 2024 | Ended | 31 Oct 2024 |
| 6.0 | Jul 2022 | 31 Jul 2025 | Ended | 31 Jul 2025 |
| 7.0 | Aug 2023 | 31 Aug 2027 | Supported | 31 Aug 2027 |
| 8.0 | Oct 2024 | 31 Oct 2029 | Supported | 31 Oct 2029 |
| 8.2 | Sep 2025 | 31 Jul 2026 | Ended | Auto-upgrade table: 31 Jul 2026 |
| 8.3 | May 2026 | 31 Oct 2029 | Supported | Auto-upgrade table: TBD, no sooner than Oct 2026 |
| 9.0 | Sep 2026 | 31 Oct 2031 | Supported | 31 Oct 2031 |
Source: MongoDB software lifecycle schedules, Enterprise Advanced table and Atlas tables, checked 4 Dec 2026. The five-year rule is section 2.1 of the software support policy. Status is our reading of the dates against 4 Dec 2026. The lifecycle page is MongoDB's; confirm there before you plan.
The support policy covers MongoDB's subscription customers and does not state separate terms for Community Edition, so for a self-managed Community cluster the practical meaning of an end-of-life date is the one in MongoDB's versions guide: the version no longer receives fixes, including security fixes, and its documentation is no longer maintained. MongoDB also says drivers released more than three years after a server version's end of life will not be compatible with it, so a 5.0 cluster loses driver support for newer driver releases from late 2027.
What is the upgrade path from MongoDB 5.0?
You cannot skip a major release. The 7.0 and 8.0 upgrade guides both say you must successively upgrade major releases, so from 5.0 the path is 6.0, then 7.0, then 8.0. Each step is a binary upgrade on every member, then a feature compatibility version (FCV) change once you are satisfied.
| Step | Must already be | Changes worth reading before you start |
|---|---|---|
| 5.0 to 6.0 | Latest 5.0 with FCV 5.0 (6.0 guide) | The legacy mongo shell is removed, use mongosh. Legacy query operators such as $query and $orderby and the getLastError command were removed in 5.1. Unique indexes created in 6.0 do not work on versions earlier than 5.3.2 or 5.0.7 (6.0 compatibility) |
| 6.0 to 7.0 | Latest 6.0 with FCV 6.0 (7.0 guide) | Free Monitoring is removed. hint() with $natural accepts only 1 and -1. Time series collections with custom bucketing must be converted or dropped. Journaling is always on from 6.1 (7.0 compatibility) |
| 7.0 to 8.0 | Any 7.0 with FCV 7.0 (8.0 guide) | null equality no longer matches undefined. On sharded clusters only listed commands may run directly on a shard. LDAP is deprecated. Check for non-time-series system.buckets collections (8.0 compatibility) |
| 8.0 to 9.0 (optional) | 8.3 or 8.0, with FCV set to match (9.0 guide) | 9.0 changes were not read for this page. Read its compatibility notes before you plan |
Each cell links the MongoDB page it was read from, checked 4 Dec 2026. The lists are the changes that stood out to us, not the full lists: read each compatibility page in full against your own application.
For 5.0 itself, MongoDB's 6.0 upgrade guide requires every member to run 5.0 with the FCV set to 5.0 first. The 6.0 upgrade guide and compatibility notes are read from MongoDB's documentation repository, because the 6.0 pages are in its legacy documentation. Drivers also need checking at every step: both the 8.0 and 7.0 guides tell you to confirm your driver supports the target version.
How do you upgrade a replica set one major version?
MongoDB's guides give the same order for each step: check every member is on the previous version at the matching FCV and none is in ROLLBACK or RECOVERING, upgrade secondaries one at a time, step down the primary and upgrade it, then raise the FCV after a burn-in period. Test in staging first.
Check state
Confirm every member runs the previous major version and reports the matching FCV. Confirm no member is in ROLLBACK or RECOVERING (replSetGetStatus).
Secondaries first
Shut down one secondary, replace the binary, restart, and repeat for each secondary.
Step down the primary
Run rs.stepDown(), wait for another member to become primary, then upgrade the former primary.
Burn in
Run on the new binaries with the old FCV. The docs recommend a burn-in because enabling the new FCV complicates a downgrade.
Raise the FCV
Run setFeatureCompatibilityVersion on the primary, with confirm: true on 7.0 and later. No initial sync may be running, or the command restarts it.
Source: the 7.0 and 8.0 replica-set upgrade guides, checked 4 Dec 2026. Sharded clusters have their own procedures on the same release pages. Downgrades are limited: the 8.0 guide says MongoDB supports only single-version downgrades, so an 8.0 deployment can go back to 7.0 but not on to 6.0, and the versions guide says downgrading needs the FCV to be unraised or pinned before the upgrade (versions guide). Treat the FCV change as the point of no return and take a backup first.
Which version should you land on?
Do not stop at 6.0 (already ended) and think hard before stopping at 7.0, which ends 31 Aug 2027. Landing on 8.0 gives support to 31 Oct 2029, and it is also the version you must be on, or on 8.3, before moving to 9.0. This is our reading of the dates.
- 8.0
- is the usual stop for a 5.0 estate: three upgrades, with support to 31 Oct 2029 per the lifecycle page.
- 9.0
- (released Sep 2026, ends 31 Oct 2031) must be reached from 8.3 or 8.0. That makes 8.0 the route in anyway, and 9.0 a fourth step you can schedule later. The 9.0 compatibility notes are not read here.
- 8.x minor releases.
- 8.2 reached end of life on 31 Jul 2026. The support policy defines Minor Releases from 8.2, and the versions guide says that in versions before 9.0 you cannot skip minor releases. For 9.0 onward, self-managed deployments receive only the annual Feature Update release (numbered x.5) besides majors.
- Atlas.
- Dedicated clusters follow the major-release dates in the table. Clusters on Auto Upgrade follow a different table: see the next section.
What happens on Atlas when a version reaches end of life?
MongoDB's versions guide says Atlas emails at least six months before end of life, stops new deployments on the version a few months later, and upgrades clusters that are still on it to the current default target version, in your maintenance window. The default target is not always the next major version.
Source: MongoDB versions and upgrade paths, checked 4 Dec 2026. For Atlas clusters on Auto Upgrades, Atlas advances the FCV itself, so you do not control it, and the guide says that raising the FCV on Atlas is the point after which a downgrade is not possible. If you want to stay in control of timing, the options are Manual Upgrades, or leaving Atlas. See the Atlas comparison, the Atlas pricing page and the Atlas to self-managed guide.
What happens if you stay on an end-of-life version?
The version stops receiving fixes, including security fixes, and MongoDB has no obligation to support it for a customer running it, per its support policy. Documentation moves to a legacy site. MongoDB offers Extended Lifecycle Support, a two-year option for Enterprise Advanced customers. Self-managed clusters without it carry the risk themselves.
- No fixes.
- The versions guide says an end-of-life version no longer receives fixes, including security fixes (guide).
- No vendor support.
- Section 8(iv) of the support policy removes MongoDB's support obligation for versions past end of life (policy).
- Extended Lifecycle Support.
- The guide describes an optional two-year period for Enterprise Advanced customers. The terms and price were not on the pages read.
- Drivers.
- Newer drivers stop supporting the version three years after end of life.
- Compliance.
- Many security reviews flag unsupported database versions. That is a policy question for your team, not something this page can settle.
How does OSStend help with a MongoDB upgrade?
OSStend runs MongoDB on community, unforked builds in OSStend's cloud, your cloud account, your data center or air-gapped. An upgrade starts as a written design, signed off, with the step order, FCV timing and rollback plan, and a failover is rehearsed before the production change. Named engineers run it 24/7.
The service is on managed MongoDB. Replica-set mechanics are in MongoDB replica sets, and the edition question is in Community vs Enterprise. Prices are quoted per design on pricing.
Who this does not fit
This page suits teams on self-managed MongoDB 5.0 to 7.0 who need the order of steps and the dates. It does not replace the release notes for your exact version, and it does not cover sharded-cluster procedures.
Contact us if
- ✓You run self-managed MongoDB 5.0, 6.0 or 7.0 and need to plan the stepwise upgrade.
- ✓You need the end-of-life dates for a risk register.
- ✓You want an on-call team to run the upgrade and the cluster afterwards.
Not a fit if
- ✕You run a sharded cluster and need that procedure. Use MongoDB's sharded-cluster pages for your version.
- ✕You are on Atlas Dedicated and happy with Atlas's upgrade handling.
- ✕You want a self-serve service with a free tier. OSStend does not offer one.
Questions about MongoDB upgrades and end of life
Is MongoDB 5.0 end of life?
Yes. MongoDB's lifecycle page lists 5.0 end of life as 31 Oct 2024 (lifecycle page, checked 4 Dec 2026).
When does MongoDB 6.0 reach end of life?
It already did: 31 Jul 2025 on MongoDB's lifecycle page. Release 7.0 ends 31 Aug 2027.
Can I upgrade MongoDB 5.0 straight to 8.0?
No. The 7.0 and 8.0 upgrade guides say you must upgrade through each major release in turn, so 5.0 goes to 6.0, then 7.0, then 8.0, with the FCV raised at each step.
What is the feature compatibility version?
A setting that controls whether features that write data in a format older versions cannot read are enabled. After a binary upgrade the deployment keeps running at the old FCV until you raise it. Raising it limits your ability to downgrade.
Can I downgrade MongoDB after upgrading?
Only one version back, and the 8.0 guide warns that enabling new features complicates it. An 8.0 deployment can return to 7.0, and not further.
When does MongoDB 8.0 end of life?
31 Oct 2029 on the lifecycle page. Release 9.0 ends 31 Oct 2031.
Related pages
- AlternativeMongoDB Atlas pricing and alternatives in 2027MongoDB Atlas pricing and alternatives: Atlas list prices, and managed MongoDB in OSStend's cloud, your cloud or your data center, with the migration run for you.
- ComparisonMongoDB Atlas pricing explained (2026)MongoDB Atlas pricing from MongoDB's own page: Flex and M10 to M80 tiers, backup, transfer and uplifts, plus a self-run cost comparison. Checked 4 Dec 2026.
- Migration guideMigrate MongoDB off Atlas without downtimeMigrate MongoDB off Atlas with mongosync or mongodump: version limits, what to check, how cutover works, and managed running by OSStend engineers.
- MongoDBMongoDB hosting: managed replica sets, shardingMongoDB hosting run 24/7 by OSStend engineers: replica sets and sharded clusters with HA, backups, point-in-time recovery, monitoring and upgrades.
- Learn · MongoDB operationsMongoDB replica set: elections, failover, what breaksHow a MongoDB replica set works in production: elections, failover time, write concern, rollbacks and oplog size, from the MongoDB manual. Docs read 4 Dec 2026.
- Learn · MongoDBMongoDB Community vs Enterprise: features, licenceMongoDB Community vs Enterprise Advanced: Enterprise-only features, the SSPL licence, support and pricing, from MongoDB's docs. Checked 4 Dec 2026.
Plan the upgrade with an engineer
45 minutes: your versions, topology and drivers are reviewed, and the step order, FCV timing and rollback plan are sketched.
- ✓A design sketch for your workload, not a plan menu
- ✓A zero-downtime cutover path for what you run today
- ✓A price for that design, after the review





