Is MongoDB actually free, or is "MongoDB pricing" just a polite way of asking what Atlas costs? Both questions have real answers, and most people searching the phrase are really asking the second one without realizing the first one has a separate, more interesting answer attached to it.
What's actually free, and what it costs you instead
MongoDB Community Edition, the software you can download and run on your own servers, is licensed under the Server Side Public License, confirmed directly on MongoDB's Community Edition product page, which states plainly that Community Edition "is the source-available and free-to-use edition of MongoDB." There's no seat count, no storage cap, and no bill for running it on hardware you already control.
The license has one condition that most "is MongoDB free" roundups skip past. Section 13 of the SSPL states that if you "make the functionality of the Program or a modified version available to third parties as a service," you have to make your entire service's source code, not just MongoDB's, available to everyone at no charge under the same license. That single clause is why almost nobody builds a commercial, white-labeled database-as-a-service product on top of self-hosted MongoDB. The database itself costs nothing, but reselling it as a service means open sourcing the product wrapped around it, which defeats the point of selling it in the first place.
For a team using MongoDB internally, inside its own application, Section 13 never triggers. That's the distinction worth holding onto before reading any further: "free" describes self-hosted internal use specifically, not every way a business might want to use MongoDB.
Atlas's three live tiers, and what each one actually costs
Atlas is MongoDB's own managed hosting product, and as of this writing it runs three tiers, confirmed directly on MongoDB's pricing page:
- Free (M0): $0 forever, 512 MB of storage, shared compute, one cluster per project.
- Flex: $0.011 an hour, capped around $30 a month, 5 GB of storage, tiered by operations per second from about $8 a month at the low end up to the $30 cap.
- Dedicated: starts at M10, $0.08 an hour, scaling through named tiers (M20, M30, M40, and up) to M700 at $33.26 an hour for the largest published configuration.
Flex is the tier most small projects actually land on. It's also the newest of the three: Flex replaced two older offerings, Serverless and the shared M2/M5 cluster tiers, in a migration MongoDB's own documentation dates precisely. New M2, M5, and Serverless deployments stopped being creatable in February 2025. By January 22, 2026, every existing M2 and M5 cluster was migrated to Flex specifically, while Serverless instances were migrated to Free, Flex, or Dedicated depending on each instance's own usage.
That migration date matters more than it looks, because MongoDB's own pricing page hasn't caught up to its own documentation.
The shared tier that's still listed but no longer for sale
Scroll down MongoDB's pricing page past the Dedicated cluster table and there's a separate "Shared Tier Clusters" table, still live, still showing dollar figures: M2 at $9 a month, M5 at $25 a month, right next to the free M0 tier. Nothing on that table says retired, legacy, or discontinued.
Cross-check that against MongoDB's own flex-migration documentation, and the contradiction is explicit. The docs state, in MongoDB's own words, "As of February 2025, you can create Flex clusters, and can no longer create M2 and M5 clusters or Serverless instances" through the Atlas UI, CLI, API, Kubernetes Operator, Terraform, or CloudFormation. A second line confirms the rest: "As of January 22, 2026, Atlas no longer supports M2 and M5 clusters and Serverless instances. All existing M2 and M5 clusters were migrated to Flex clusters."
So the pricing page quotes a real number for a plan that hasn't existed for close to a year. Anyone scoping a project off that table, including a few of the third-party pricing roundups that currently rank for this exact keyword, is pricing a line item that no sales rep can actually sell them. If a quote or an internal budget still references M2 or M5, the fix isn't a discount conversation, it's recognizing the number belongs to Flex now, at Flex's own rate.
What a basic production cluster costs once it's running
Dedicated is the tier that matters once a project needs guaranteed, non-shared compute instead of Free or Flex's shared resources. The smallest Dedicated node, M10, lists at $0.08 an hour on MongoDB's pricing page. As an illustration of what that comes out to over a full month: $0.08 times 24 hours times 30 days is roughly $57.60 a month, before anything else gets added to the bill.
And something else almost always gets added. The same pricing page states that backups are "charged based on region and monthly storage consumed by snapshots and oplogs" and are "not available for Free tier," while data transfer is "billed separately," with inbound transfers typically free and outbound (egress) data the main thing that costs money. Neither of those shows up in the $0.08 headline rate, the same way carrier fees don't show up in a telecom provider's headline per-message rate. A production cluster's real monthly bill is the hourly compute rate plus whatever backups and egress actually get used that month, not the hourly rate alone.
MongoDB's own advice for keeping that bill down is refreshingly simple. The pricing page's own FAQ on managing costs recommends to "pause development or testing clusters when not in use," or terminate them entirely if they're no longer needed. For Dedicated clusters specifically, it points to Atlas's built-in auto-scaling to adjust storage and tier based on real-time CPU and memory load rather than manually resizing a cluster that's either overpaying at idle or undersized at peak.
Where MongoDB pricing fits once it's part of a bigger stack
None of this changes once MongoDB sits behind a reporting layer or an automated pipeline instead of standing alone. Our analytics team treats MongoDB pricing the same way it treats every other database line item in a client's stack: compute, storage, backups, and egress priced as four separate numbers that get added together, not one blended "database cost" guessed from a single tier name.
The retired-tier confusion shows up just as often on the automation side. A scheduled job that reads from or writes to a MongoDB cluster, whether it's an n8n flow, a cron job, or a custom integration, inherits whatever tier that cluster is actually running on, not whatever tier someone remembers pricing it at last year. It's the kind of mismatch our workflow automation team checks for directly against the live Atlas dashboard before scoping a build, since an automation priced against a Flex-tier cluster behaves differently under load than one sized for a shared M2 cluster that technically doesn't exist anymore.
Key things to check before you price a MongoDB build
- Confirm which tier a cluster is actually running on inside the Atlas dashboard itself, not from a pricing page table or an old budget line, since the table can list a retired plan's number next to the live ones.
- Add backups and data transfer as their own line items. Neither is included in the hourly compute rate, and both are billed separately per MongoDB's own pricing page.
- Treat the Section 13 SSPL clause as a hard stop before self-hosting MongoDB for any product that resells database access to other businesses, not just an internal application.
- Use MongoDB's own pause-and-auto-scale advice on Dedicated and Flex clusters that sit idle outside business hours, rather than paying full-time compute for part-time usage.
A pricing page that still lists a retired plan is an easy thing to miss once, and an expensive thing to keep budgeting around twice. Check the live tier against the Atlas dashboard before the next quote goes out, not after.



