Buying RAM

How much RAM for Excel, Power BI and data analysis in Python?

For everyday spreadsheets, 16GB of RAM is plenty, even with a browser and Teams open. If you build large Excel models, import big datasets into Power BI, or load multi-gigabyte files into Python with pandas, 32GB is the amount that stops you running out. 64GB is for people who regularly work with tens of millions of rows on their own PC.

Does Excel have a memory limit?

It depends on whether you run the 32-bit or 64-bit version of Excel, and that matters more than how much RAM you buy.

The 32-bit version can only use a small, fixed amount of memory. Microsoft says it gets 2GB of virtual address space, shared between Excel, your workbook and any add-ins. A feature called Large Address Aware, added in Excel 2016, doubles that to 4GB on 64-bit Windows. Past that, 32-bit Excel shows "out of memory" errors even if your PC has 64GB installed.

The 64-bit version has no such ceiling. Microsoft says its workbook size is limited only by available memory and system resources, and that it scales with the RAM you have. If you work with big files, check which version you have under File, Account, About Excel. Newer installs are usually 64-bit, but older company setups are sometimes still 32-bit.

How much RAM does Excel actually use?

Less than you might think for normal work, and far more than you'd expect for badly built workbooks. A sheet can hold 1,048,576 rows by 16,384 columns, and a few habits make Excel track far more of that grid than you use.

Microsoft's own troubleshooting article lists the usual causes of "There isn't enough memory to complete this action":

  • Whole-column references. A single VLOOKUP pointed at entire columns references almost 10.5 million cells, according to Microsoft.
  • Excess formatting. Formatting applied to whole rows or columns, piles of unused styles, and hidden shapes or comments.
  • Volatile functions such as TODAY and NOW, which recalculate constantly.
  • Links to other workbooks and array formulas spread across large ranges.

Microsoft's suggested fixes are to clean those up first, then move to 64-bit Excel, add memory, or split the workbook. In other words, more RAM helps, but a cleaner workbook often helps more.

How much RAM does Power BI Desktop need?

Microsoft's stated minimum for Power BI Desktop is modest: at least 2GB available, with 4GB or more recommended, as quoted by consulting firm Senturus. That figure is for the app to open, not for real reports.

In Import mode, Power BI loads your data into memory, compressed, and works on it there. Senturus, which trains Power BI users, recommends 16GB to 32GB for analysts. In its own test with a 580MB CSV of nearly six million rows, Senturus saw memory use climb past 16GB on its 128GB machine, with other apps also running. Treat that as one example, not a rule: real use depends on how many columns you import and how well they compress.

If your reports use DirectQuery, where the data stays in a database and Power BI sends it queries, your PC needs far less memory.

How much RAM for Python, pandas and R?

This is where needs jump fastest, because data in memory can take up much more room than the same data on disk. Python Speed measured pandas files using anywhere from 0.4 times to 15 times their size on disk once loaded, depending on the file format and how much text the data contains. Text-heavy data and compressed formats like Parquet expand the most.

You'll often see a rule of thumb that you need 5 to 10 times as much RAM as your dataset. Python Speed's point is that no single multiplier holds, so measure your own data instead. A practical approach: load a sample, check how much memory it uses in Task Manager or with pandas' memory tools, and scale up.

The pandas documentation shows how much you can save before buying RAM:

  • Load only the columns you need. In the docs' example, that alone used about a tenth of the memory.
  • Use smaller data types. Converting a repeated text column to the "category" type cut it from about 13.7MB to 1.1MB in the example.
  • Process in chunks instead of loading the whole file at once.

How much RAM for each kind of work?

What you're doing RAM that works
Office work, small spreadsheets, email and a browser 16GB
Large Excel models, Power Query, a few hundred thousand rows 16GB to 32GB
Power BI Import mode with millions of rows 32GB
pandas or R with files of a few gigabytes 32GB
Tens of millions of rows locally, several models open, or Docker alongside 64GB

These ranges are our estimates based on the sources above, not official figures. If you also write code with Docker or run local databases, our guide on RAM for programming covers those extras.

Does RAM speed matter for spreadsheets and data work?

Not enough to pay extra for. Excel's recalculation leans on your CPU's cores, and pandas spends most of its time on single-threaded work. Faster RAM helps a little with very large calculations, but running out of capacity is far slower than any speed difference. Two sticks of DDR5-6000, or DDR4-3200 on an older PC, are more than enough. Put the money into gigabytes instead.

How do you tell if you need more RAM?

Open Task Manager while you work and look at the Memory graph on the Performance tab. If it sits above about 90% during your normal work, or Windows shows a "low on memory" warning, more RAM will help. Our guides on finding what's using your RAM and the Windows low on memory warning walk through it.

If you're buying a laptop for data work, check whether the memory is soldered before you choose 16GB. You can't add more later, as our guide on how much RAM a laptop needs explains.

The short version

  • 16GB is plenty for everyday Excel and office work.
  • Use 64-bit Excel for big files: 32-bit Excel tops out at 2GB to 4GB of memory however much RAM you have.
  • 32GB is the right amount for Power BI imports, big Excel models and pandas work with multi-gigabyte files.
  • Clean up whole-column references and excess formatting, and load fewer columns in pandas, before buying RAM.
  • Capacity matters far more than speed for data work.

Sources