Google Colab
Google Colab's free notebooks run at most 12 hours on resources that are not guaranteed, idle virtual machines are deleted, and the card rule is not confirmed.
Google Colab is a hosted Jupyter notebook service with free access to GPUs and TPUs, for learning Python, machine learning, and data science.
By Google CloudAIChecked ✓ 15 Nov 2026
Is it a fit?
Good fit
Use Google Colab for quick prototyping, learning, or sharing Python notebooks when you want free GPU access without setting up anything.
- learning
- prototyping
- teaching
Not a fit
Avoid Colab for long-running jobs, hosting services, or work that needs guaranteed compute. Free runtimes can be shut down.
- you need guaranteed GPU time
- you need persistent compute or storage
- you want to host a web app or serve files
You use Colab in the browser. You sign in with a Google account, open or create a notebook, and run Python in cells on a virtual machine that Google hosts. It suits students, teachers, and ML beginners who want a free GPU or TPU without any setup.
What the free plan gives you
The FAQ says Colab is free of charge and gives access to computing resources, including GPUs and TPUs. There is nothing to install. Notebooks are stored in Google Drive or loaded from GitHub, and you can share them like a Google Doc. You can download any notebook as an .ipynb file.
Google publishes a maximum of 12 hours for free notebooks, subject to availability and usage. Other exact allocations are unpublished: Colab resources are not guaranteed and not unlimited, and usage limits sometimes fluctuate. Colab gives priority to people who are actively programming in a notebook. Your code runs in a virtual machine private to your account.
When you hit a limit
Virtual machines are deleted when idle for a while, and the service enforces a maximum lifetime. Google publishes a maximum of 12 hours for free notebooks, but exact idle thresholds vary. The free tier can also terminate runtimes at any time without warning if they do things like remote control with SSH shells or remote desktops, run a web UI instead of the notebook, or run distributed workers. A paid Colab plan with a positive compute-unit balance relaxes these activity restrictions. Enterprise, dedicated resources or a local runtime are other options. Colab also limits how often you can reset your virtual machine.
Gotchas
- Free runtimes can end without warning. Save work to Google Drive and keep install cells in your notebook, because custom files and libraries on the virtual machine are not shared.
- Interacting mainly through a web UI instead of working in notebook cells is one of the activities that can end a free runtime.
- Mounting Google Drive can time out if a folder holds thousands of items, so keep your top-level My Drive folder small.
Alternatives in this atlas
- Deepnote: when several people need to edit one notebook in real time.
- Paperspace: when you want a hosted notebook machine with basic instances.
- Hugging Face Spaces: when you want to host a demo app, which Colab does not allow.
Questions people ask
Is Google Colab free?
Yes. The FAQ says Colab is free of charge to use, including GPUs and TPUs. Resources are not guaranteed, and limits sometimes change.
Does Google Colab need a credit card?
The FAQ describes the service as free of charge and mentions a Google account sign-in. It does not mention a card for the free tier.
Why does my Colab runtime keep disconnecting?
Colab deletes idle virtual machines and sets a maximum lifetime. Free runtimes are also ended when they run things like web UIs or SSH shells.
How to get started
- Open Colab and sign in with your Google account.
- Create a notebook, or choose Upload notebook from the File menu to import an .ipynb file. You can also load one from GitHub.
- Write Python in cells and run them. The code runs on a virtual machine private to your account.
- Notebooks save to Google Drive. Use the Share button to share one, and add install cells for any custom libraries.
- Download the notebook from the File menu when you want a copy.
Other free ai options
Same category, safest first.