Google doesn't publish how much memory a Colab runtime has, so we collected what it does say (its FAQ, its release notes, the Colab CLI's docs and the text of the crash and runtime dialogs in the notebook page's own script) and the sizes people measured on each runtime in 2026. Then we reproduced the problem in a Docker container on a laptop, with Colab's current Python 3.13 and pandas 2.2.3: a memory report you can paste into a cell, three ways to load the same CSV, a dtype clean-up and a crash we capped on purpose.
The short answer: a free Colab runtime has about 12.7 GiB of RAM, the figure its RAM meter shows; Google only says free users get VMs with a "standard system memory profile". Paid plans can switch on High-RAM, which users measured at about 51 GiB on a CPU or T4 runtime, and paid GPUs bring more: about 53 GiB on an L4, 83 on a 40 GB A100 and 167 on the 80 GB one. "Your session crashed after using all available RAM" means the notebook's Python process was killed for running out of memory: variables are gone, files on the runtime's disk stay. Load fewer columns, smaller dtypes or chunks, or pay for High-RAM. Checked 2 December 2026.
Fastero
Jupyter notebooks for your team, with nothing to install.
Start a notebook or bring your .ipynb files. SQL cells query your databases with no password in the code, and a notebook runs now or on a schedule. Colleagues open it with their own login; viewers are free.
Try free →How much RAM does Google Colab have?
Google's FAQ answers without a number: "In the version of Colab that is free of charge you are able to access VMs with a standard system memory profile", and "In paid versions of Colab you are able to access machines with a high memory system profile subject to availability and your compute unit balance." Its usage limits, it says, are not published at all: "Colab does not publish these limits". So the sizes below are what people printed from inside their runtimes.

System RAM of each Colab runtime, from measurements users published between March and November 2026. Google publishes none of these sizes.
| Runtime | RAM, as reported | Who reported it, when |
|---|---|---|
| CPU or T4, standard (the free plan's) | 12.7 GiB | Unsloth's issue tracker, November 2026; Colab's own meter read "2.1 / 12.7 GB" in May 2025 |
| CPU or T4, High-RAM | 51 GiB | Unsloth, November 2026 ("51.0 GiB host RAM") |
| L4 | 53 GiB | A Colab Pro user, October 2026; Unsloth, November 2026 |
| A100, 40 GB | about 83 GiB | Unsloth, November 2026 |
| A100, 80 GB (High-RAM) | 167 GiB | Unsloth, November 2026 |
| G4 (RTX PRO 6000) | 177 GiB | Unsloth, November 2026 |
| TPU v5e-1 | 47 GiB | A developer's runtime test, November 2026 |
| TPU v6e-1 | 172 GiB | A Colab user's free -h, March 2026 |
| H100 | No published measurement found |
Three things to read into that table:
- The units are binary gigabytes. Colab's meter,
free -hand most of these reports count GiB, where 1 GiB is 1.074 GB. The same runtime reads about 7% higher if you divide bytes by a billion: one user put a High-RAM T4 at "~55 GB" from the Colab CLI, which is the same 51 GiB. - Paid GPUs come with bigger machines. You don't need High-RAM on an L4 or A100 to get past 12.7 GiB. Google's October 2025 release notes describe the high-memory A100 as "offering double the GPU and system RAM", which matches 83 against 167.
- Free means the standard machine. The Colab CLI's docs call the T4 the "standard free-tier GPU", and the High-RAM switch doesn't appear for free accounts (below). Google's FAQ also asks you to "avoid opting for GPUs or extra memory when it is not needed for your work."
The free runtime's other numbers, from a July 2026 write-up: "an instance with around 12 GiB RAM and 60 GiB disk space, 2 vCPUs". Session lengths and GPU limits are in our Colab limits guide.
Colab High-RAM: which plans get it and how to turn it on
- Open Runtime › Change runtime type.
- Pick the hardware (CPU, T4 or A100), switch on High-RAM and click Save.
- Colab connects you to a new machine. Rerun your setup cells: it's a fresh runtime.
Who sees the switch: the script that draws that dialog only adds the High-RAM switch for accounts with a paid Colab status, and greys it out on the H100, G4, L4 and TPU runtimes, which come in one size. The Colab CLI's README says the same about --high-mem: "Requires Colab Pro or Pro+ entitlement for supported accelerators (CPU, T4, A100, etc.)." Google's FAQ is broader ("paid versions of Colab"), so Pay As You Go buyers should check for the switch rather than assume. Colab's plan page lists "Access our highest memory machines." under Pro.
What it costs: High-RAM uses compute units faster. Cody Collier measured a T4 at 1.07 units an hour and a High-RAM T4 at 1.27 in July 2026, and the A100 at 5.30 against 6.77 for the 80 GB version. Rates and what units cost are in our compute units guide.
"Your session crashed after using all available RAM": what it means
That message is Colab's label for one diagnosis. The notebook page's script checks why the session died and, for the case it calls out_of_memory, shows exactly "Your session crashed after using all available RAM." The link beside it depends on your account: on a paid plan with a standard machine it says Get more RAM and opens "Switch to a high-RAM runtime?"; otherwise it says View runtime logs.
What happened underneath: the Python process running your notebook used all the machine's memory and was killed. There's no swap to slow down into first (a user's free -h on a TPU v6e runtime in March 2026 showed 0B of swap), and Python gets no chance to raise MemoryError. We reproduced that in a container capped at 600 MB with swap off, running a loop that holds 100 MB more each step:
$ docker run -m 600m --memory-swap 600m ... python oom_demo.py
holding 100 MB
holding 200 MB
holding 300 MB
holding 400 MB
holding 500 MB
holding 600 MB
$ echo $?
137No traceback and no error message: the output just stops. Docker reported OOMKilled=true, and exit code 137 means killed by signal 9. In Colab the same thing happens to the notebook's kernel, and the page shows the crash message instead.
What you lose: everything in the kernel's memory: variables, DataFrames, loaded models, imported modules. What stays: the runtime itself. The kernel restarts on the same machine (runtime logs posted in March 2026 show "AsyncIOLoopKernelRestarter: restarting kernel (1/5)"), so files in /content and packages you installed are still there. That changes if you accept the High-RAM offer, which moves you to a new machine; the dialog warns: "Your current runtime's state will be lost, including local files." Save anything you need to Drive first; our Colab and Google Drive guide covers how.
One caution before you blame your code: in March 2026 TPU v6e runtimes crashed at about 12 GB while reporting more than 160 GiB free. Colab's team fixed it within two days: "This should be fixed by now with any newly created/assigned TPU v6e VMs." If the meter says you had plenty left, check Colab's issue tracker.
How to check RAM usage in Colab
- The RAM bar. Colab has shown "graphs of RAM and disk usage in notebook toolbar" since February 2023. Click it, or use View resources, for figures such as "2.1 / 12.7 GB" of System RAM. Watch it while a cell runs: a line climbing toward the top is your warning.
!free -h. Read theavailablecolumn, notfree. Its manual defines available as an "Estimation of how much memory is available for starting new applications, without swapping."- psutil, installed in Colab (version 5.9.5 in Google's package list), gives the same in Python. Its docs define
availableas "the memory that can be given instantly to processes without the system going into swap."
None of them tells you which variable is the problem. This cell does: it prints the machine's RAM, what the notebook's own process holds, and the biggest objects in the notebook.
import os
import sys
import psutil
GiB = 2**30 # Colab's RAM meter and free -h count in these
def size_of(obj):
"""Bytes an object holds: pandas and NumPy report their real size."""
if hasattr(obj, "memory_usage") and hasattr(obj, "ndim"): # DataFrame, Series
size = obj.memory_usage(deep=True)
return int(size.sum()) if hasattr(size, "sum") else int(size)
if hasattr(obj, "nbytes"): # NumPy arrays, PyTorch tensors (GPU ones use GPU memory)
return int(obj.nbytes)
if isinstance(obj, (list, tuple, set, dict)): # the container plus one level of items
items = obj.values() if isinstance(obj, dict) else obj
return sys.getsizeof(obj) + sum(sys.getsizeof(x) for x in items)
return sys.getsizeof(obj)
def memory_report(namespace=None, top=5):
"""Print the machine's RAM, this kernel's share of it, and the biggest variables."""
vm = psutil.virtual_memory()
kernel = psutil.Process(os.getpid()).memory_info().rss
print(f"total {vm.total / GiB:.1f} GiB | available {vm.available / GiB:.1f} GiB | "
f"this kernel {kernel / GiB:.2f} GiB")
try: # a container's own cap (cgroup v2), if there is one
cap = open("/sys/fs/cgroup/memory.max").read().strip()
if cap != "max":
print(f"container cap {int(cap) / GiB:.1f} GiB")
except OSError:
pass
namespace = sys.modules["__main__"].__dict__ if namespace is None else namespace
sizes = [(size_of(v), k, type(v).__name__) for k, v in list(namespace.items())
if not k.startswith("_") and not callable(v) and type(v).__name__ != "module"]
for size, name, kind in sorted(sizes, reverse=True)[:top]:
if size >= 2**20: # skip anything under 1 MiB
print(f" {name:<12} {kind:<10} {size / GiB:6.2f} GiB")We ran it on 2 December 2026 in a Docker container capped at 3 GB (Python 3.13.18, pandas 2.2.3, NumPy 2.5.5, psutil 7.2.2; Colab's package list has pandas 2.2.3 and NumPy 2.4.6), after creating a 2-million-row DataFrame, a 1,000,000 × 64 NumPy array and a list of a million strings, then again after del embeddings and gc.collect():
total 31.2 GiB | available 27.6 GiB | this kernel 0.77 GiB
container cap 3.0 GiB
embeddings ndarray 0.48 GiB
orders DataFrame 0.13 GiB
ids list 0.06 GiB
after del embeddings:
total 31.2 GiB | available 28.0 GiB | this kernel 0.29 GiB
container cap 3.0 GiB
orders DataFrame 0.13 GiB
ids list 0.06 GiBOn our laptop, total is the Docker machine's memory and the cap line is the limit that matters. On Colab, total is the runtime's RAM; a Pro+ user reported Colab's container limit as max, so the cap line won't print. Deleting the array gave 0.48 GiB back at once. One catch the report can't see: a DataFrame you displayed as a cell's result is also held in IPython's output history (_, Out), which, IPython's docs warn, "prevents Python's garbage collector from removing any previously computed results". Use %xdel df instead of del df, or %reset -f out.
Jupyter notebooks for your team.
Start free →How to fix "Your session crashed" inside Colab
1. Load less
pandas' own guide starts here, and it's the biggest win. We wrote a 3-million-row orders CSV (218 MB on disk, eight columns) and loaded it three ways, each in a fresh process, measuring peak memory:
df = pd.read_csv(CSV) # everything, default dtypes
df = pd.read_csv(CSV, usecols=["region", "product", "quantity", "price"],
dtype={"region": "category", "product": "category",
"quantity": "int8", "price": "float32"})
parts = []
for chunk in pd.read_csv(CSV, usecols=["region", "price"], chunksize=250_000):
parts.append(chunk.groupby("region")["price"].sum()) # keep only the answerpandas 2.2.3; /data/orders.csv is 218 MB on disk
load peak RAM seconds rows kept
read_csv, defaults 0.85 GiB 7.2 3,000,000
read_csv, 4 columns + dtypes 0.29 GiB 4.9 3,000,000
chunks of 250,000 rows 0.10 GiB 3.3 4
(peak RAM is the whole process; Python with pandas imported uses 0.07 GiB)The default load needed about four times the file's size. By that ratio, a 3 GB CSV of the same shape would need about 11 GiB to load as it is: nearly all of a free runtime, before you've done anything with it. That's an estimate from arithmetic, not a run. Chunks work whenever you can reduce each piece to an answer; pandas puts it plainly: "As long as each chunk fits in memory, you can work with datasets that are much larger than memory."
2. Use smaller dtypes
"The default pandas data types are not the most memory efficient", pandas' guide says, and text columns are the worst. We built a 5-million-row table and converted each column:
pandas 2.2.3, numpy 2.5.5, 5,000,000 rows
column before dtype after dtype
order_id 40MB int64 20MB int32
region 268MB object 5MB category
product 285MB object 10MB category
quantity 40MB int64 5MB int8
price 40MB float64 20MB float32
order_date 295MB object 40MB datetime64[ns]
total 968MB 100MB (10% of the original)Repeated strings to category, date strings to real dates, and small integers to int8 or int16 (pd.to_numeric(s, downcast="integer") picks the size). Use float32 only where you don't need more than about seven significant digits.
3. Free what you're done with
del the big object, gc.collect(), and mind the output history above. If memory stays high, Runtime › Restart session clears the kernel and keeps your files, which is often quicker than hunting.
4. Pay for more memory
Switch on High-RAM on a paid plan, or pick an L4 or A100, which bring 53 to 167 GiB with them. Without a subscription, the FAQ's advice is: "You can always purchase more compute via Pay As You Go should you hit limits."
When to move the job off Colab
- Your data is bigger than any runtime, or you need the same size every time. Colab Enterprise, on Google Cloud, lets you choose the machine type in a runtime template. See our Colab Enterprise guide.
- You want more free memory. Kaggle's notebooks have about 29 to 31 GB with two T4s, by the same Unsloth reports; our Kaggle vs Colab comparison covers its quotas.
- Your own machine has more. Colab can connect to a local runtime, which uses your computer's RAM and none of Colab's limits.
- The work is SQL-shaped. DuckDB and Polars can stream data that doesn't fit in memory; see DuckDB vs pandas.
Where Fastero fits
Fastero is an AI and data platform where people and AI agents work together on a team's data. Its notebooks are standard .ipynb files on a notebook server nobody has to run, and memory there is a matter of price rather than plan:
- The standard machine is 1 CPU and 2 GB, included on every plan, and enough for notebooks whose SQL cells let the database do the heavy work: a SQL cell runs on a saved connection (Postgres, MySQL, SQL Server, Redshift, Oracle or BigQuery) and only its result lands in Python as a pandas DataFrame.
- On Pro, a notebook can move to a bigger machine: 2 CPUs and 8 GB at $0.20 an hour, 4 CPUs and 16 GB at $0.40, or 8 CPUs and 32 GB at $0.80, charged by the second from money added to the balance (Pro's $20 per editor a month doesn't include it). An hour on 16 GB costs $0.40, not a new laptop.
- Cron schedules run on the server with no browser open, so a nightly job on a 16 GB machine doesn't need a tab kept alive or a High-RAM switch flipped.
- For GPU model training, keep Colab and its 167 GiB A100 machines.
Plans and machine prices are on the pricing page.
FAQ
How much RAM does Google Colab give for free?
About 12.7 GiB on the standard CPU or T4 runtime, the figure Colab's RAM meter shows. Google doesn't publish it; its FAQ only says free users get VMs with a standard system memory profile. Paid High-RAM runtimes have about 51 GiB.
Does Colab Pro give you more RAM?
Yes: Pro and Pro+ can switch on High-RAM, about 51 GiB on a CPU or T4 runtime, and their paid GPUs come with bigger machines, about 53 GiB on an L4 and 83 or 167 GiB on an A100. High-RAM uses compute units faster, and Google offers it subject to availability.
Why does Colab say "Your session crashed after using all available RAM"?
Your notebook's Python process used all the runtime's memory and was killed. Colab runtimes report no swap to fall back on, so there's no slowdown and no MemoryError first. The usual causes are loading a whole file with default dtypes, or keeping several copies of a big DataFrame.
Do I lose my files when Colab runs out of RAM?
No, only what was in memory: variables, DataFrames and loaded models. The kernel restarts on the same runtime, so files in /content and installed packages stay. Switching to a High-RAM runtime afterwards is a new machine, and that does delete local files.
How do I check how much RAM I'm using in Colab?
Watch the RAM bar at the top right of the notebook, or open View resources. In a cell, run !free -h and read the available column, or use psutil, which is installed. The memory report above also lists your biggest variables.
Can I get more RAM in Colab for free?
Not inside Colab: High-RAM needs a paid plan. You can make your data smaller (fewer columns, category and int8 dtypes, chunks), connect Colab to a local runtime on a computer with more memory, or use Kaggle's notebooks, which have about 29 to 31 GB.
How much RAM does the Colab A100 have?
Users measured about 83 GiB on the 40 GB A100 runtime and 167 GiB on the 80 GB one, which is what High-RAM selects on an A100, in November 2026. Google describes the high-memory A100 as having double the GPU and system RAM.
Sources
Read on 2 December 2026:
- Google: Colab FAQ, Colab release notes, the crash, runtime and plan dialogs in the script that draws the notebook page, Colab CLI README and session docs, Colab local runtimes, Colab Enterprise runtime templates
- Colab's issue trackers: TPU v6e kernel killed with 161 GiB free (March 2026), TPU v6e High-RAM limited to 12 GB (March 2026), T4 resource panel (May 2025), L4 system RAM (October 2026), High-RAM in the Colab CLI (2026)
- Measurements: Unsloth on L4 and A100 hosts, T4 High-RAM, G4, A100 High-RAM and Kaggle and G4 (November 2026); TPU v5e-1 runtime test (November 2026); Running LLMs on Google Colab (July 2026); Cody Collier, Colab accelerator rates (July 2026); Chris McCormick, Colab GPUs (March 2026)
- Documentation: psutil 7.2.2, free(1), pandas: Scaling to large datasets, IPython: output caching
Try Fastero free: run data notebooks on a schedule next to your team's database, and rent 16 or 32 GB by the hour on Pro when a job needs it. No credit card required.
Fastero Dev Team