Discord bot RAM calculator
How much RAM does your Discord bot need? An estimate built on 1,297 bots we actually measured, by language, size and features. Free, no account.
Pick your bot's language, size and features: the tool gives the memory to plan for, based on the RAM measured on 1,297 running bots.
Where the numbers come from
The base comes from our study of 28 November 2026: the RAM actually used by 1,297 running Discord bots. A small bot gets the median of its language, a medium bot the 90th percentile, a large bot the 99th percentile.
Features add a fixed estimate, not measured: the usual memory of the process or library they load. The recommendation adds 50% headroom, then rounds up to a common size.
Measured reference points
| Language | Median | 90th percentile | 99th percentile |
|---|---|---|---|
| Node.js | 40.8 MB | 78.7 MB | 177.3 MB |
| Python | 40.5 MB | 83.4 MB | 182.8 MB |
| All bots | 40.6 MB | 82.6 MB | 181.5 MB |
RAM used by the running bots on 28 November 2026, inactive file cache excluded.
What makes memory grow
- The library cache: members, messages and channels kept in memory grow with the number of servers.
- Music: ffmpeg runs as a separate process, counted in the bot's memory.
- A headless browser (Puppeteer, Playwright): a single Chromium tab often goes past 300 MB.
- Leaks: an array or a Map that never empties. If memory climbs and never comes down, look there.
If the bot runs out of memory
- Node.js: start the bot with node --max-old-space-size=200 so it frees memory before the container limit.
- Turn off the intents the bot does not need (members, presences): fewer events, smaller cache.
- Python: read large files in chunks instead of loading them whole.
- Past 2,500 servers, Discord requires sharding: each shard uses its own memory.
Frequently asked questions
How much RAM does a small Discord bot need?
128 MB is often enough: the measured median is 41 MB. Plan 256 MB for a medium bot or a music bot, and 512 MB to 1 GB beyond 1,000 servers or with a headless browser.
Does a Discord bot fit in 315 MB?
Yes, for the vast majority: 99% of the measured bots use less than 182 MB. The ones above stream music to many servers, generate images or drive a browser.
Node.js or Python: which uses less memory?
They are level: 40.8 MB at the median for Node.js, 40.5 MB for Python. The runtime version and the library cache matter more than the language.
Why does my bot's RAM keep growing?
Most often the library cache grows with members and messages, or a collection in the code never empties. Limit the cache and check memory after a few hours: a leak climbs and never comes down.