Free Coding Courses: The Best Free Programming Courses From Universities and Platforms (2027 Guide)
The best free coding courses on the internet, picked by goal and level: Harvard CS50, MIT OpenCourseWare, Stanford, Berkeley, CMU, the University of Helsinki MOOCs, Princeton Algorithms, freeCodeCamp, The Odin Project, fast.ai and many more. If you searched for “free coding courses”, “free programming courses with certificates” or “free online computer science courses from top universities”, this is a curated, hand-checked list with study paths, time estimates and honest notes on what is really free in 2026 and what now sits behind a paywall.
Last reviewed: December 2026. Every link below was opened and checked when this page was reviewed. Free tiers change often (Coursera’s audit change in 2025 is the biggest recent example), so the What “free” means in 2026 section explains how to check before you commit.
Table of Contents
- Quick Picks: Best Free Course for Each Goal
- What “Free” Means in 2026
- How to Use This List
- Absolute Beginner Courses
- Harvard CS50 Family
- University of Helsinki MOOCs
- MIT Free Courses
- Stanford Free Courses
- UC Berkeley Free Courses
- Carnegie Mellon and Princeton
- Web Development Courses
- Python Courses
- Other Languages
- Data Structures and Algorithms
- Computer Systems, Operating Systems and Networking
- Databases and SQL
- Data Science, Machine Learning and AI
- Mobile Development
- Cloud, DevOps and Linux
- Cybersecurity
- Full Free Computer Science Degrees (Self-Paced)
- Free Certificates: Which Ones Exist
- Comparison Table: Top 20 Free Courses
- Study Paths With Time Estimates
- How to Actually Finish a Free Course
- Projects to Build Alongside Courses
- FAQ
- Where to Go Next
- Contributing
- More free resources
Quick Picks: Best Free Course for Each Goal
If you only read one section, read this one.
| Your goal | Best free pick | Why this one | Rough time |
|---|---|---|---|
| Try coding for the first time | CS50P: Introduction to Programming with Python | Clear lectures, auto-graded problem sets, free certificate from CS50 | 60-100 hours |
| A real CS foundation | CS50x: Introduction to Computer Science | Covers C, memory, algorithms, Python, SQL, web in one course | 100-200 hours |
| Learn Python properly, with a university credential option | Python Programming MOOC 2026 (Helsinki) | Hundreds of graded exercises, fully free, exam option | 100-200 hours |
| Become a web developer | The Odin Project | Full path with real projects, strong community | 800-1,200 hours |
| Modern full-stack JavaScript | Full Stack Open (Helsinki) | React, Node, testing, TypeScript, GraphQL, CI | 200-400 hours |
| Learn web dev with structured certifications | freeCodeCamp | Browser-based lessons, free certifications | 300+ hours per track |
| Algorithms for interviews and CS | Princeton Algorithms, Part I and Part II | Classic course with real programming assignments | 100-150 hours |
| Fix the tools gap (shell, Git, editors, debugging) | MIT Missing Semester | Short, practical, updated in 2026 with agentic coding | 15-25 hours |
| Understand how computers work, bottom up | Nand2Tetris | Build a computer from logic gates to an OS | 100-200 hours |
| Practical deep learning | fast.ai Practical Deep Learning | Code-first, builds working models in lesson one | 70-120 hours |
| Machine learning fundamentals | Google Machine Learning Crash Course | Short, visual, interactive, refreshed for modern ML | 15-30 hours |
| LLMs from scratch | Andrej Karpathy’s Neural Networks: Zero to Hero | Builds a GPT from first principles in code | 40-80 hours |
| A whole CS degree, free | OSSU Computer Science | Curated sequence of free university courses | 2-4 years part-time |
The time ranges are our own estimates for a beginner doing all exercises, not official figures. Faster learners will need less; people new to the subject often need the top of the range.
What “Free” Means in 2026
“Free course” can mean very different things. Before you invest 100 hours, check which kind you are looking at.
| Type | What you get | Examples |
|---|---|---|
| Fully open | Every lecture, exercise and project, forever, no account needed or a free account | MIT OpenCourseWare, Missing Semester, Berkeley CS61A site, Nand2Tetris site, The Odin Project, fast.ai |
| Free with free certificate | All materials plus a certificate issued by the course itself at no cost | CS50 (free CS50 certificate), freeCodeCamp certifications, Helsinki MOOCs (completion), Saylor Academy |
| Free to learn, pay for certificate | All materials free, the verified certificate costs money | CS50 on edX (verified certificate is paid), many edX courses |
| Time-limited audit | Free access for a limited window, graded work and certificate excluded | Most edX courses on the audit track |
| Preview only | First module free, rest needs a subscription or financial aid | Many Coursera courses since Coursera replaced its audit option with a free course preview in August 2025 |
| Freemium | Some lessons free, the full path is paid | Codecademy, Scrimba, Boot.dev, DataCamp, Sololearn |
Important 2025-2026 changes to know about:
- Coursera announced in August 2025 that a “course preview” (roughly the first module, including some graded work) replaces the old audit experience for most courses. Some courses still show a full free option, and Coursera says financial aid is available. Always open the enrollment dialog on the specific course to see what you get. Several university courses listed here (for example Princeton’s Algorithms) are still reported as fully free by learners, but check yourself.
- edX still offers a free audit track, but access is usually time-limited and excludes graded assignments. Many university courses that run on edX (CS50 is the best example) also publish all their material on their own site, which is permanent and fully free.
- YouTube is often the safest “free forever” option. Many university courses post full lecture series on YouTube even when the platform version is paywalled.
If a course in this list has moved behind a paywall, please open an issue.
How to Use This List
- Pick one starting course from Quick Picks. Do not start three at once.
- Commit to a weekly schedule. Six to ten hours a week finishes most courses here in two to four months.
- Do every exercise. Watching lectures without doing problem sets gives a feeling of progress with very little skill.
- Build one project of your own after each course (see Projects to Build Alongside Courses).
- Then pick the next course from a Study Path.
Legend used below: [Free] fully free, [Free+cert] free with a free certificate, [Audit] free to learn with limits, [Freemium] partly free, [Paid] paid.
Absolute Beginner Courses
Start here if you have never written a line of code.
| Course | Provider | Language | Notes |
|---|---|---|---|
| CS50P | Harvard | Python | [Free+cert] The friendliest start that still teaches properly. Ten weeks of lectures, problem sets checked by check50. |
| CS50’s Introduction to Programming with Scratch | Harvard | Scratch | [Free+cert] For kids, teens, or adults who want to learn logic visually first. |
| Code in Place | Stanford | Python | [Free] Runs once a year (usually spring) as a live course with volunteer section leaders. Covers roughly the first half of Stanford’s CS106A. Register when the next round opens. |
| Python for Everybody | University of Michigan (Dr. Chuck) | Python | [Free] Very gentle, aimed at people who are not “math people”. Free textbook, videos and auto-graded exercises on the site. |
| Python Programming MOOC 2026 | University of Helsinki | Python | [Free] More exercises than any other free beginner course. The 2026 run is open until the end of 2026; a 2027 edition normally replaces it. |
| Khan Academy Computing | Khan Academy | JavaScript, SQL | [Free] Short interactive lessons; good for teenagers. |
| freeCodeCamp Responsive Web Design / Full Stack curriculum | freeCodeCamp | HTML, CSS, JS | [Free+cert] You code in the browser from minute one. |
| Elements of AI | University of Helsinki and MinnaLearn | No coding | [Free+cert] Non-technical introduction to what AI is. |
| Google’s Python Class | Python | [Free] Short and dated in places, but a fast refresher for people who already know another language. |
Best pick for most beginners: CS50P. It is short enough to finish, rigorous enough to matter, and leads directly into CS50x. If you want more practice volume, pair it with the Helsinki Python MOOC.
Harvard CS50 Family
CS50 is Harvard’s introductory computer science program, and almost all of it is free on cs50.harvard.edu, on edX and on the CS50 YouTube channel. You can earn a free CS50 certificate by completing the required work (CS50’s own FAQ says at least 70% on each assignment), or pay edX for a verified certificate.
| Course | Focus | Prerequisites | Best for |
|---|---|---|---|
| CS50x | C, memory, data structures, algorithms, Python, SQL, HTML/CSS/JS, Flask | None | Everyone who wants real CS foundations |
| CS50P | Python from scratch: functions, exceptions, libraries, tests, file I/O, regex, OOP | None | Total beginners |
| CS50W | Web programming with Python (Django) and JavaScript, SQL, testing, scaling | CS50x or similar | Web developers |
| CS50 AI | Search, knowledge, uncertainty, optimization, ML, neural networks, language | CS50x or CS50P | First serious AI course |
| CS50 SQL | Relational databases, SQLite, PostgreSQL, MySQL, schema design, optimization | None | Anyone who touches data |
| CS50 Cybersecurity | Securing accounts, data, systems, software; privacy | None | Everyone, technical or not |
| CS50 R | Programming with R for data analysis | None | Analysts, researchers |
| CS50 Business | CS concepts for managers and founders | None | Non-engineers who work with engineers |
| CS50 for Lawyers | Technology for legal professionals | None | Lawyers, policy people |
| Understanding Technology | How the internet, hardware and software work | None | Non-technical learners |
How long does CS50x take? CS50’s own FAQ suggests budgeting roughly 10 to 20 hours for each week’s problem set, on top of lectures, across Weeks 0 to 10 plus a final project. Most self-paced learners finish in three to six months part-time.
Deadlines and carryover: CS50x runs in yearly terms. As of the December 2026 review, the FAQ says work submitted in the current term carries forward into an extended term if you submitted at least one assignment. Always check the FAQ for the current deadline before you start.
Tips:
- Use the free browser IDE at cs50.dev so you do not have to install anything.
- CS50’s AI tutor, the “CS50 Duck” at cs50.ai, is designed to guide you without giving away answers. Use it instead of a general chatbot for problem sets.
- After CS50x, the most common next steps are CS50W (web), CS50 AI, or the Princeton Algorithms courses.
University of Helsinki MOOCs
Finland’s University of Helsinki publishes some of the best free courses in the world on mooc.fi. They are text-based (not video-first), full of graded exercises, and free. Many of them can also be taken for official university credits through the Open University.
| Course | What you learn | Notes |
|---|---|---|
| Python Programming MOOC 2026 | Python basics through OOP and a small project | Introduction (parts 1-7) and Advanced (parts 8-14); exams for credit |
| Java Programming MOOC | Java from zero to OOP and data structures | Classic course, used by many universities |
| Full Stack Open | React, Node.js, Express, MongoDB, testing, state management, TypeScript, GraphQL, React Native, CI/CD, containers, relational databases | Core parts 0-5 plus many extension parts; one of the best free web courses anywhere |
| DevOps with Docker | Containers, Docker Compose, images, deployment | Redirects to the current year’s course page |
| DevOps with Kubernetes | Kubernetes, GitOps, monitoring | Do DevOps with Docker first |
| Cyber Security Base | Web security, secure software, attacks and defenses | Course series with practical exercises |
| Elements of AI | What AI is, without code | Free certificate on completion |
Best pick: Full Stack Open, if you already know basic JavaScript. It teaches the way real teams build web apps and it is updated regularly.
MIT Free Courses
MIT OpenCourseWare (OCW) publishes real MIT course materials: lecture videos, notes, problem sets and exams, free and with no sign-up. There are no certificates and no graders, so you check your own work.
| Course | Topic | Level | Notes |
|---|---|---|---|
| 6.100L Introduction to CS and Programming Using Python | Programming, computational thinking | Beginner | MIT’s current intro course with full videos |
| 6.0002 Introduction to Computational Thinking and Data Science | Optimization, simulation, statistics, ML basics in Python | Beginner+ | Natural follow-up to 6.100L |
| Missing Semester of Your CS Education | Shell, command-line environment, dev tools, debugging, profiling, Git, packaging, agentic coding, code quality | All levels | Revised in January 2026 with new lectures on agentic coding and shipping code |
| 6.006 Introduction to Algorithms | Core algorithms and data structures | Intermediate | Needs basic Python and discrete math |
| 6.042J Mathematics for Computer Science | Proofs, graphs, counting, probability | Intermediate | The math every CS student needs; free textbook included |
| 6.046J Design and Analysis of Algorithms | Advanced algorithms | Advanced | After 6.006 |
| 6.004 Computation Structures | Digital logic, processors, computer architecture | Intermediate | Pairs well with Nand2Tetris |
| 6.1810 Operating System Engineering | OS internals with the xv6 teaching OS | Advanced | Labs are public and excellent |
| 6.5840 / 6.824 Distributed Systems | Raft, fault tolerance, replication, consistency | Advanced | Famous Go labs (implement Raft yourself) |
| 18.06 Linear Algebra | Matrices, vector spaces, eigenvalues | Intermediate | Gilbert Strang’s legendary lectures; essential for ML |
| 6.S191 Introduction to Deep Learning | Deep learning, generative models | Intermediate | Short annual bootcamp; new lectures posted each year |
| Introduction to Computational Thinking | Math, data and simulation with Julia | Intermediate | Interactive Pluto notebooks |
| 6.031 Software Construction | Writing correct, maintainable code in TypeScript | Intermediate | Public readings on specs, testing, ADTs, concurrency |
Best pick: Missing Semester for everyone (it is short and saves you hundreds of hours over a career), then 6.006 when you want serious algorithms.
Stanford Free Courses
| Course | Topic | Notes |
|---|---|---|
| Code in Place | Intro Python | Free live course once a year with small sections |
| CS229 Machine Learning | ML theory and math | Notes on the site; lectures on Stanford’s YouTube channel |
| CS231n Deep Learning for Computer Vision | CNNs, vision, training neural networks | The course notes are among the best free deep learning writing |
| CS224n NLP with Deep Learning | Word vectors, transformers, LLMs | Slides and assignments public |
| CS144 Computer Networking | TCP/IP, building a TCP implementation | Lab-heavy; you write a working TCP stack in C++ |
| CS193p Developing Apps for iOS | SwiftUI app development | Lecture videos posted publicly |
| Stanford Online free courses | Mixed catalog | Includes free self-paced courses on many subjects |
UC Berkeley Free Courses
Berkeley keeps many of its core CS course sites public, often with full lecture videos, slides, homework and autograded projects you can run locally.
| Course | Topic | Notes |
|---|---|---|
| CS61A Structure and Interpretation of Computer Programs | Programming in Python and Scheme, abstraction, recursion, interpreters | One of the best intro CS courses anywhere; free textbook “Composing Programs” linked from the site |
| CS61B Data Structures | Java, data structures, algorithms, large projects | Spring 2024 site linked because it is fully public; newer terms may restrict some materials |
| CS61C Great Ideas in Computer Architecture | C, RISC-V, caches, parallelism | Pairs with CS:APP |
| CS186 Introduction to Database Systems | Database internals, SQL, query optimization | Projects build parts of a real database |
| Data 8 Foundations of Data Science | Data science with Python, statistics by simulation | Free online textbook and materials |
Carnegie Mellon and Princeton
| Course | Topic | Notes |
|---|---|---|
| Princeton Algorithms, Part I | Union-find, sorting, priority queues, symbol tables, BSTs, hash tables | By Robert Sedgewick and Kevin Wayne; Java programming assignments with an autograder |
| Princeton Algorithms, Part II | Graphs, minimum spanning trees, shortest paths, strings, compression | Do after Part I |
| Algorithms, 4th Edition booksite | Companion site with code and exercises | Free code and summaries; the textbook itself is paid |
| CMU 15-445/645 Database Systems | Database internals: storage, indexes, concurrency, recovery | Lecture videos on YouTube; projects build a database engine (BusTub) |
| CS:APP labs (CMU 15-213) | Bomb lab, attack lab, cache lab, malloc lab | Self-study handouts are public; the textbook is paid |
| Deep Learning Systems (CMU 10-414/714) | Build a deep learning library from scratch | Advanced; great for ML engineers |
| 15-122 Principles of Imperative Computation | Contracts, data structures, C | Course site; some materials are restricted to CMU students |
Web Development Courses
| Course | Stack | Format | Notes |
|---|---|---|---|
| The Odin Project | HTML, CSS, JavaScript, Node.js or Ruby on Rails | Text + projects | [Free] Best free full path for self-taught web developers; you set up a real local environment and build a portfolio |
| freeCodeCamp | HTML, CSS, JS, React, Node, Python, SQL | Interactive in-browser | [Free+cert] Its newer main path is the “Certified Full Stack Developer” curriculum, split into smaller checkpoint certifications |
| Full Stack Open | React, Node, TypeScript, GraphQL, Docker | Text + exercises | [Free] Best for people who already know basic JS |
| CS50W | Django, JavaScript, SQL | Lectures + projects | [Free+cert] Best for Python people |
| MDN Learn Web Development | HTML, CSS, JS, accessibility | Text | [Free] Written by the people who document the web platform |
| web.dev Learn | HTML, CSS, JS, accessibility, performance, forms, images | Text | [Free] Google’s in-depth modules; great second pass |
| Microsoft Web Dev for Beginners | HTML, CSS, JS | 24 lessons on GitHub | [Free] Project-based, good for classrooms |
| javascript.info | Modern JavaScript | Text tutorial | [Free] The clearest free JavaScript reference-tutorial |
| Scrimba | Frontend, React, AI engineering | Interactive screencasts | [Freemium] Several free intro courses; full career paths are paid |
| Codecademy | Many | Interactive | [Freemium] Free basic courses; projects and paths need Pro |
Best pick: The Odin Project if you want one complete free path. freeCodeCamp if you prefer structured browser-based lessons and certifications. Full Stack Open as the “level up” course after either.
Python Courses
| Course | Level | Why |
|---|---|---|
| CS50P | Beginner | Clear, rigorous, free certificate |
| Python Programming MOOC 2026 | Beginner to intermediate | Huge exercise volume |
| Python for Everybody | Beginner | Gentlest start; free book |
| MIT 6.100L | Beginner+ | More CS depth |
| Berkeley CS61A | Beginner+ to intermediate | Teaches you to think like a programmer |
| The official Python tutorial | Beginner+ | Short and authoritative |
| Django for Everybody | Intermediate | Web apps with Django, same teaching style as P4E |
| PostgreSQL for Everybody | Intermediate | SQL and PostgreSQL in depth |
| Kaggle Learn Python and Pandas | Beginner | Short notebook-based micro-courses aimed at data work |
Other Languages
| Language | Best free course or official tutorial | Notes |
|---|---|---|
| JavaScript | javascript.info, Eloquent JavaScript | Eloquent JavaScript is a free online book by Marijn Haverbeke with exercises |
| Java | Helsinki Java Programming MOOC | Best structured free Java course |
| C | CS50x weeks 1 to 5 | Teaches C with memory and pointers |
| C++ | learncpp.com | Free, thorough, kept up to date |
| Go | A Tour of Go | Official interactive tour |
| Rust | The Rust Programming Language book | The official free book |
| OCaml / functional | OCaml Programming: Correct + Efficient + Beautiful (Cornell CS 3110) | Free textbook with video lectures |
| Racket / program design | How to Design Programs | Free book; teaches a systematic design recipe |
| Many languages, mentored | Exercism | Free practice tracks for 70+ languages, with optional human mentoring |
Data Structures and Algorithms
| Course | Language | Level | Notes |
|---|---|---|---|
| Princeton Algorithms I and II | Java | Intermediate | Best overall free algorithms course |
| MIT 6.006 | Python | Intermediate | More theory and proofs |
| Berkeley CS61B | Java | Intermediate | Data structures with big projects |
| MIT 6.046J | Theory | Advanced | Graduate-prep algorithms |
| Coding Interview University | Any | All | A free self-study plan that links to many free videos |
How to choose: Princeton if you like programming assignments; MIT 6.006 if you like proofs and theory; CS61B if you want big projects. For interview practice afterward, see our sister guide on coding practice websites.
Computer Systems, Operating Systems and Networking
| Course | What you build or learn | Notes |
|---|---|---|
| Nand2Tetris | A computer from NAND gates up to a compiler and OS | Also on Coursera as Build a Modern Computer from First Principles; the site, tools and project specs are free |
| CS:APP labs | How C programs run on real hardware | Self-study labs |
| Berkeley CS61C | Architecture, C, RISC-V | Great with CS:APP |
| MIT 6.1810 | Add features to the xv6 OS | Hard but rewarding |
| Operating Systems: Three Easy Pieces | OS concepts | Free online textbook by the Arpaci-Dusseaus, the standard companion for OS self-study |
| Berkeley CS162 | Operating systems | Current term site; availability of materials varies |
| Stanford CS144 | Build TCP in C++ | Best hands-on networking course |
| MIT 6.5840 Distributed Systems | Raft and a sharded key-value store | Labs in Go |
| Crafting Interpreters | Build two interpreters | Free online book by Robert Nystrom; works as a self-paced course |
Databases and SQL
| Course | Notes |
|---|---|
| CS50 SQL | Best beginner course on relational databases; free certificate |
| PostgreSQL for Everybody | Deep dive into PostgreSQL features, including JSON and text search |
| CMU 15-445 Database Systems | How databases work inside; lectures on the CMU Database Group YouTube channel |
| Berkeley CS186 | Database internals with projects |
| Khan Academy Intro to SQL | Very gentle interactive start |
Data Science, Machine Learning and AI
| Course | Level | Format | Notes |
|---|---|---|---|
| Kaggle Learn | Beginner | Short notebooks | [Free+cert] Python, Pandas, ML, SQL, visualization; Kaggle issues free completion certificates |
| Google Machine Learning Crash Course | Beginner | Videos + interactive | [Free] Refreshed in 2024 with modern topics |
| Microsoft ML for Beginners | Beginner | 26 lessons on GitHub | [Free] Classic ML with scikit-learn |
| Berkeley Data 8 | Beginner | Course materials | [Free] Statistics through simulation |
| CS50 AI | Beginner+ | Lectures + projects | [Free+cert] Broad, project-based AI intro |
| fast.ai Practical Deep Learning for Coders | Intermediate | Videos + notebooks | [Free] Best practical deep learning course |
| Neural Networks: Zero to Hero | Intermediate | YouTube + code | [Free] Backprop to GPT, all from scratch |
| MIT 6.S191 | Intermediate | Lectures + labs | [Free] Fast, current overview |
| Stanford CS229 | Advanced | Notes + video | [Free] The math of ML |
| Stanford CS231n | Advanced | Notes + assignments | [Free] Deep learning fundamentals via vision |
| Stanford CS224n | Advanced | Slides + assignments | [Free] NLP and transformers |
| Hugging Face Learn | Intermediate | Text + notebooks | [Free] LLM, agents, diffusion, RL and more courses using the HF ecosystem |
| Microsoft Generative AI for Beginners | Beginner | Lessons on GitHub | [Free] Building apps with LLMs |
| Microsoft AI Agents for Beginners | Beginner+ | Lessons on GitHub | [Free] Agent design patterns with code |
| DeepLearning.AI short courses | Beginner+ | 1-2 hour videos | [Freemium] Many short courses are free to watch; check each course page |
| Caltech Learning From Data | Intermediate | Lectures | [Free] Excellent theory of generalization |
| CMU Deep Learning Systems | Advanced | Lectures + assignments | [Free] Build a framework from scratch |
Best path for AI beginners: Kaggle Learn (Python + Pandas + Intro to ML) -> Google ML Crash Course -> fast.ai -> Karpathy’s Zero to Hero. Add MIT 18.06 when the math starts to hurt.
Mobile Development
| Course | Platform | Notes |
|---|---|---|
| Android Basics with Compose | Android (Kotlin) | Official Google course, free |
| Develop in Swift / SwiftUI Tutorials | iOS (Swift) | Official Apple tutorials, free |
| Stanford CS193p | iOS (SwiftUI) | University-level course with public lectures |
| Flutter learning pathway | Cross-platform (Dart) | Official learning path, free |
| Full Stack Open Part 10 | React Native | Free part of Full Stack Open |
Cloud, DevOps and Linux
| Course | Notes |
|---|---|
| MIT Missing Semester | Shell and tools foundation |
| DevOps with Docker | Free Helsinki course |
| DevOps with Kubernetes | Free Helsinki course |
| Introduction to Linux (LFS101) | Free self-paced course from The Linux Foundation |
| AWS Skill Builder | [Freemium] Hundreds of free digital courses; labs and exam prep sets are often paid |
| Google Skills (formerly Cloud Skills Boost) | [Freemium] Free learning paths; some labs use credits |
| Microsoft Learn | [Free] Free modules for Azure, .NET, GitHub, Power Platform and more |
Cybersecurity
| Course | Level | Notes |
|---|---|---|
| CS50 Cybersecurity | Beginner | Concepts for everyone |
| Cyber Security Base (Helsinki) | Beginner+ | Secure software development with exercises |
| pwn.college | Beginner to advanced | Free hands-on course from Arizona State University; you hack in a browser-based environment |
For practice platforms (CTFs, wargames), see the companion guide on coding practice websites in the Ralpberry Labs collection.
Full Free Computer Science Degrees (Self-Paced)
These are not single courses but curated sequences of free courses that roughly match an undergraduate CS degree.
| Curriculum | What it is | Time | Best for |
|---|---|---|---|
| OSSU Computer Science | Community-maintained path of free university courses (intro CS, core CS, advanced electives, final project) | 2-4 years at ~20 h/week | Self-learners who want breadth |
| Teach Yourself CS | Nine subjects with one best book and one best video course each | 1-3 years | Working engineers filling gaps |
| MIT OpenCourseWare EECS | Pick MIT’s own course sequence | Varies | Self-starters |
| NPTEL and SWAYAM | Free courses from IITs and Indian universities; exams for certificates have a fee | Varies | Learners in India who want recognized certificates |
| Saylor Academy | Free self-paced courses with free certificates on passing the final exam | Varies | Learners who want free certificates |
| Harvard free online courses | Harvard’s catalog filtered to free courses | Varies | Browsing beyond CS50 |
Free Certificates: Which Ones Exist
Certificates are rarely what gets you hired; projects are. Still, a free certificate can be a useful motivation and a line on a resume.
| Provider | Free certificate? | Details |
|---|---|---|
| CS50 (Harvard) | Yes | Free CS50 certificate after completing required work; a verified edX certificate is paid |
| freeCodeCamp | Yes | Free certifications after completing required projects (and, for the new full stack path, exams) |
| University of Helsinki MOOCs | Yes, for many | Completion certificates and, via exam, official credits |
| Kaggle Learn | Yes | Completion certificates per micro-course |
| Elements of AI | Yes | Free certificate |
| Saylor Academy | Yes | Free on passing the final exam |
| Microsoft Learn | Badges and trophies | Free; formal Microsoft certification exams are paid |
| Coursera | Usually no | Certificates need payment or financial aid |
| edX | Usually no | Verified certificates are paid |
| NPTEL | Exam fee | Learning is free, the proctored exam certificate costs a small fee |
Comparison Table: Top 20 Free Courses
| # | Course | Provider | Level | Graded exercises | Free certificate | Estimated hours |
|---|---|---|---|---|---|---|
| 1 | CS50x | Harvard | Beginner | Yes (auto) | Yes | 100-200 |
| 2 | CS50P | Harvard | Beginner | Yes (auto) | Yes | 60-100 |
| 3 | Python Programming MOOC | Helsinki | Beginner | Yes (auto) | Yes | 100-200 |
| 4 | The Odin Project | Community | Beginner to job-ready | Projects | No | 800-1,200 |
| 5 | freeCodeCamp | Nonprofit | Beginner | Yes (auto) | Yes | 300+ per track |
| 6 | Full Stack Open | Helsinki | Intermediate | Submissions | Yes | 200-400 |
| 7 | Missing Semester | MIT | All | Self-check | No | 15-25 |
| 8 | CS61A | Berkeley | Beginner+ | Local autograder | No | 120-180 |
| 9 | Princeton Algorithms I + II | Princeton | Intermediate | Yes (auto) | No | 100-150 |
| 10 | MIT 6.006 | MIT | Intermediate | Self-check | No | 120-150 |
| 11 | Nand2Tetris | Nisan and Schocken | Beginner+ | Tools check your work | No | 100-200 |
| 12 | CS50W | Harvard | Intermediate | Projects | Yes | 100-150 |
| 13 | CS50 AI | Harvard | Beginner+ | Yes (auto) | Yes | 70-120 |
| 14 | CS50 SQL | Harvard | Beginner | Yes (auto) | Yes | 40-70 |
| 15 | Python for Everybody | Michigan | Beginner | Yes (auto) | No (on own site) | 50-80 |
| 16 | Google ML Crash Course | Beginner | Interactive | No | 15-30 | |
| 17 | fast.ai | fast.ai | Intermediate | Notebooks | No | 70-120 |
| 18 | Zero to Hero | Andrej Karpathy | Intermediate | Code along | No | 40-80 |
| 19 | CMU 15-445 | CMU | Advanced | Projects (local tests) | No | 120-180 |
| 20 | MIT 6.5840 | MIT | Advanced | Lab test suites | No | 120-200 |
Hours are our own estimates for a learner who completes the exercises.
Study Paths With Time Estimates
Each path assumes about 8 to 10 hours per week. Double the hours and halve the months, or the reverse.
Path A: Complete beginner to first programming job foundations (about 12 months)
| Months | Course | Outcome |
|---|---|---|
| 1-2 | CS50P | You can write Python programs with functions, tests and files |
| 3-5 | CS50x | You understand memory, algorithms and how the web fits together |
| 6 | Missing Semester | Comfortable with the shell, Git and a real editor |
| 7-11 | The Odin Project (JavaScript path) or Full Stack Open | A portfolio of real web apps |
| 12 | Capstone project of your own | Something you can demo in an interview |
Path B: Web developer (about 9 months)
- freeCodeCamp or The Odin Project Foundations (2-3 months)
- javascript.info parts 1 and 2 as a reference (ongoing)
- Full Stack Open parts 0-7 plus TypeScript (4 months)
- web.dev Learn performance and accessibility modules (2 weeks)
- DevOps with Docker (3 weeks)
- Build and deploy two full-stack projects (1-2 months)
Path C: Computer science fundamentals for working developers (about 12 months)
- Berkeley CS61A (2 months)
- Princeton Algorithms I and II (3 months)
- Nand2Tetris (2 months)
- OSTEP with MIT 6.1810 labs (2 months)
- Stanford CS144 (1.5 months)
- CMU 15-445 (1.5 months)
Path D: Data science and machine learning (about 10 months)
- CS50P or Python for Everybody (1-2 months)
- Kaggle Learn Pandas, Data Visualization, Intro and Intermediate ML (3 weeks)
- Berkeley Data 8 (2 months)
- MIT 18.06 Linear Algebra (in parallel, 2 months)
- Google ML Crash Course (2 weeks)
- fast.ai (2 months)
- Neural Networks: Zero to Hero (1-2 months)
Path E: Systems and backend engineer (about 12 months)
- CS50x (3 months)
- CS:APP labs with Berkeley CS61C (2 months)
- CS50 SQL and CMU 15-445 (3 months)
- Stanford CS144 (1.5 months)
- MIT 6.5840 Distributed Systems (2.5 months)
How to Actually Finish a Free Course
Completion rates for free online courses are famously low. These habits change that.
- Schedule it like a class. Fixed days and times. “When I have time” never comes.
- Join the community. CS50, The Odin Project, freeCodeCamp, Helsinki MOOCs and Code in Place all have Discord servers or forums. Asking one question a week keeps you engaged.
- Use the 20-minute rule. Stuck for 20 minutes? Write down what you tried, then ask. Stuck for 2 minutes? Keep trying.
- Do not binge lectures. One lecture, then the exercises, then the next lecture.
- Keep a learning log. One paragraph per session: what you did, what confused you. It doubles as interview material.
- Use AI as a tutor, not a ghostwriter. Ask it to explain errors and concepts. Do not paste problem sets into a chatbot; most courses (CS50 included) have academic honesty rules about this, and you skip the learning.
- Finish before switching. Course-hopping is the main reason people “learn to code” for years without being able to build anything.
- If you fall behind, shrink, do not quit. Drop to three hours a week instead of zero.
Projects to Build Alongside Courses
Courses give you skills; projects prove them. After each course, build one project of your own idea.
| After this course | Build this | Stretch goal |
|---|---|---|
| CS50P | A command-line expense tracker that saves to CSV | Add tests with pytest and charts with matplotlib |
| CS50x | A Flask web app for something you or a friend actually need | Add user accounts and deploy it |
| Odin Foundations | A personal portfolio site | Lighthouse accessibility score of 100 |
| Full Stack Open | A full-stack app with auth, tests and CI | Deploy with Docker and a managed database |
| CS50 SQL | Design a schema for a real dataset (sports, music, transit) and write 20 queries | Add indexes and measure query time |
| Princeton Algorithms | Implement a text autocomplete with a trie and a ranking | Benchmark against a sorted-array approach |
| Nand2Tetris | Write a small program in your Jack language | Optimize your VM translator |
| CS144 | A tiny HTTP server on top of your TCP | Handle concurrent connections |
| fast.ai | Image classifier for a hobby dataset, deployed as a web demo | Write a blog post explaining your results |
| Zero to Hero | Train a character-level model on your own text corpus | Add a tokenizer you wrote yourself |
FAQ
What is the best free coding course for complete beginners?
For most people, CS50P from Harvard. It assumes no experience, uses Python, has auto-graded problem sets and gives a free certificate. If you want something gentler, start with Python for Everybody. If you want more practice exercises, add the Helsinki Python MOOC.
Is CS50 really free?
Yes. All lectures, notes, problem sets and the CS50 certificate are free. You only pay if you want the verified certificate from edX. You do need a free edX account to get the free certificate, according to CS50’s FAQ.
Can I get a job with only free courses?
Many self-taught developers have, but the courses alone are not what gets you hired. Employers look at projects you built, code on GitHub, how you explain your work and how you do in interviews. Use courses to build skills, then prove them with original projects.
Are Coursera courses still free?
Partly. In August 2025 Coursera replaced its traditional audit option with a free preview (typically the first module) for most courses. Some courses still offer full free access, and Coursera offers financial aid. Check each course’s enrollment options.
Are edX courses free?
Most edX courses offer a free audit track with time-limited access to materials and no graded assignments or certificate. Courses like CS50 also publish everything on their own websites, which is better.
Which free course has the best certificate?
Among free certificates, CS50’s and freeCodeCamp’s are the most widely recognized by developers. University of Helsinki MOOCs can lead to real university credits if you take the exam through the Open University.
MIT OpenCourseWare or CS50: which should I start with?
CS50 if you are a beginner: it is designed for self-learners and has auto-graders and a community. MIT OCW is excellent but assumes you can study independently without feedback; use it for specific subjects after you have the basics.
What is the best free course to learn Python?
CS50P for a structured course, the Helsinki MOOC for maximum practice, Python for Everybody for the gentlest start. See Python Courses.
What is the best free web development course?
The Odin Project for a complete path, freeCodeCamp for interactive lessons with certifications, Full Stack Open for modern React and Node once you know the basics.
Do I need math to learn to code?
Not for most web and app development. You need logic and patience more than calculus. For algorithms, graphics, data science and machine learning, math matters: take MIT 6.042J and MIT 18.06 when you get there.
How many hours a week should I study?
Eight to ten focused hours a week is a sustainable pace that finishes CS50x in about four months. Consistency beats intensity.
Should I learn with AI tools instead of courses?
Use both. AI assistants are great for explaining errors and concepts. But a good course gives you a sequence, exercises that force you to think, and feedback from graders. Learners who let AI write their exercises tend to stall when they meet a real problem.
Are there free courses in languages other than English?
Yes. CS50 lectures have subtitles in many languages, freeCodeCamp has localized curricula and publications in several languages, and NPTEL offers transcripts or subtitles in Indian languages for some courses. University of Helsinki courses are in English and Finnish.
Where can I find more free courses?
Class Central indexes free online courses from universities. OSSU and Teach Yourself CS are curated sequences.
Where to Go Next
- Practice what you learn: solve problems on coding practice sites after each course (Exercism, LeetCode, Advent of Code). See the companion “coding practice websites” guide in the Ralpberry Labs collection.
- Roadmaps: roadmap.sh has community roadmaps for frontend, backend, DevOps and more.
- Contribute to open source: once you finish a web or Python course, a first pull request to a real project is the best next step.
- Read real code and documentation: official docs (Python, MDN, Rust, Go) are free courses in disguise.
- Keep a public portfolio: one repository per course project, each with a README that explains what it does and what you learned.
Contributing
Corrections and additions are welcome.
- Found a course that is no longer free, a broken link, or a changed URL? Open an issue or a pull request with the fix and the date you checked.
- Suggesting a new course? It must be free to learn (state clearly if a certificate costs money), from a reputable provider, and you should explain in one line why it beats an existing entry.
- No affiliate links, no pirated material, no paid-only courses disguised as free.
- Keep the tone factual and the tables consistent.
If this helped you, a star helps others find it.
Content is licensed under CC BY 4.0. Course names and trademarks belong to their owners; this is an independent list, not affiliated with any provider listed.
More free resources
Part of the Ralpberry Labs open-source collection. See also Top 100 Open Source.