Course path

Free computer science path with MIT OpenCourseWare, in order

For someone who has never written a program. You need high-school algebra to start. You need Calculus I before step 2.

The path at a glance

  1. Step 1 · any order 6.100L Introduction to CS and Programming using PythonDone means: problem sets (a weaker test than an exam)
  2. Step 1b (optional) 6.0002 Introduction to Computational Thinking and Data ScienceDone means: problem sets (a weaker test than an exam)
  3. Step 2 · any order 6.1200J Mathematics for Computer ScienceDone means: the 2008 final posted with 6.042J (Fall 2010), with MIT's solutions
  4. Step 3 6.006 Introduction to AlgorithmsDone means: exam with solutions
  5. Step 4 6.046J Design and Analysis of AlgorithmsDone means: exam with solutions
  6. Alongside steps 3 and 4 18.404J Theory of ComputationDone means: the problem sets, then the 2006 sample final with its solutions

This page puts free MIT OpenCourseWare courses in an order you can follow on your own. It covers programming, the math that computer science uses, algorithms, and the theory of computation. Each step says why it comes where it does, what is hard, what you can skip, and how to know you are done.

Free. A free account is needed to play the videos here; the files are open on MIT OCW.

This is not MIT's official roadmap. We ordered free OCW courses by the prerequisites in MIT's catalogue. MIT's catalogue for computer science is here: MIT catalogue, Course 6. MIT's math department also has a roadmap with a Computer Science track, written for MIT students: MIT Math Major Roadmaps.

OCW gives no certificate and no credit.

Step 2 needs Calculus I. MIT lists it as the only prerequisite of 6.1200J. If you have not done calculus, do stage 1 of our math path first: Single Variable Calculus (18.01SC). Its syllabus says MIT expects about 150 hours for it. Step 1 does not need calculus, so you can start programming while you learn it.

Which edition? Watch the newest edition that has videos. Test yourself with the edition that posts exam solutions. Where they differ, each step says so.

Not ready yet?

Step 1 needs no programming experience. The math comes later. To see if your algebra and trigonometry are ready for calculus, try these three from 18.01SC Problem Set 1, section 1A. Check your answers with MIT's solutions.

  1. Complete the square, then use translation and change of scale to sketch y = 3x² + 6x + 2. (1A-1b)
  2. Is sin²x even, odd, or neither? (1A-3b)
  3. Write sin x − cos x in the form A sin(x + c). (1A-6b)

If these feel new, start with a "Start here" route on our Mathematics page first.

Problem Set 1 on MIT OCW · Mathematics: Start here

How long it takes

MIT gives each subject a number of units. In MIT's words, each unit is "about 14 hours of work per term, or about one hour of work per week for a subject that spans an entire term." Today's MIT versions of these subjects carry: 6.100L 6 units, 6.1200J 12, 6.1210 (6.006) 12, 6.1220J (6.046) 12, and 18.404 12. Steps 1 to 4 add up to 42 units, about 590 hours (42 × 14). With 18.404J it is 54 units, about 760 hours. Calculus I is extra. The optional step 1b (6 units) adds about 84 hours. These are MIT's numbers for its own students; the hours are our arithmetic.

MIT Course Catalog: what a unit means, checked

Short on time? Our editors' pick

Take 6.100L, then 6.006. This is our choice, not research. MIT lists 6.1200J before 6.006, so skipping it makes the proofs and probability in 6.006 harder. Do 6.006's Problem Set 0 first to see what you are missing.

Jump to: 6.100L Introduction to CS and Programming using Python + 6.006 Introduction to Algorithms

Steps 1 and 2 : any order

We number a step only when MIT's prerequisites force the order. Steps 1 and 2 do not depend on each other: 6.1200J needs only Calculus I, not programming. Take them in either order or at the same time. Both must come before step 3. Step 1b, if you take it, comes after step 1.

Step 1: 6.100L Introduction to CS and Programming using Python

Fall 2022 · Dr. Ana Bell

What it covers. This is a first course in programming, in Python. It starts with variables, branching and loops. Then come functions, lists, dictionaries and recursion. Later lectures teach classes and inheritance, and how to measure how long a program takes. Near the end come searching and sorting. MIT writes 6.100L for people with no programming experience. It is the full-term version of 6.100A: the course itself says "the material covered is the same, but the pace is slowed down." MIT does not offer it every term now.

The hardest part. Lists, mutability and aliasing (lectures 9 to 11). The course points to it itself: lecture 10 covers "tricky examples with loops." Two names can point to the same list, so a change in one place shows up in another. Run every example yourself here. Classes (lectures 17 to 20) and program complexity (21 to 24) are longer blocks, so plan more time for them too.

What you can skip. Short on time? Skip lecture 25 (plotting) and lecture 26 (extras). The Towers of Hanoi part of lecture 16 is marked as extra.

Why it comes here. Step 3 needs this course. MIT lists 6.100A as a prerequisite of 6.1210, and 6.100L teaches what 6.100A teaches. Step 2 does not need it.

Videos that play here
26 (full lectures)
Problem-set solutions
No
Exams
No
Exam solutions
No
Free account needed to play the videos here
Yes

MIT catalogue, 6.100L: Prereq: None · MIT units: 2-0-4 (6 in all) · source, checked

Done means: Do all problem sets and finger exercises. Your programs run and give the right answers on your own test cases. Check the finger exercises with MIT's solutions. This is a weaker test than an exam: the course posts no exams and no problem-set solutions.

Stuck? Finger exercises after every lecture, with MIT's solutions. Recitation notes and code. The code from each lecture. Textbook: Guttag, Introduction to Computation and Programming Using Python, 3rd edition.

  • Older edition: 6.0001 Introduction to Computer Science and Programming in Python · Fall 2016 · Dr. Ana Bell, Prof. Eric Grimson, Prof. John Guttag

    The same content in half a term, so it moves twice as fast. Most of its lectures have in-class questions with video solutions on MIT OCW. It posts no exams and no problem-set solutions. New to programming? Pick 6.100L.

    Videos that play here
    12
    Problem-set solutions
    No
    Exams
    No
    Exam solutions
    No
    Free account needed to play the videos here
    Yes

Step 1b (optional): 6.0002 Introduction to Computational Thinking and Data Science

Fall 2016 · Prof. Eric Grimson, Prof. John Guttag, Dr. Ana Bell

What it covers. This course uses programs to answer questions about the real world. It covers optimization problems, graphs, random simulation, statistics on experimental data, and a first look at machine learning. The problem sets are small projects, such as a robot simulation and a model of disease spread. Today MIT calls it 6.100B. MIT's catalogue suggests that people with no experience take 6.100A and then 6.100B, over two terms.

The hardest part. Experimental data and statistics (lectures 7 to 10) is the longest block. This is our pick from the calendar.

What you can skip. The whole course is optional in this path. Inside it, you can skip the machine-learning lectures (11 to 14) if you plan a separate machine-learning course.

Why it comes here. No later step needs it. It gives you more Python practice before step 3.

Videos that play here
15 (full lectures)
Problem-set solutions
No
Exams
No
Exam solutions
No
Free account needed to play the videos here
Yes

MIT catalogue, 6.100B: Prereq: 6.100A or permission of instructor · MIT units: 2-0-4 (6 in all) · source, checked

Done means: Same as step 1: do all problem sets and make your programs run. A weaker test: the course posts no exams and no solutions.

Stuck? Textbook: Guttag, Introduction to Computation and Programming Using Python, 2nd edition. Lecture slides and code.

Step 2: 6.1200J Mathematics for Computer Science

Spring 2024 · Prof. Erik Demaine, Dr. Zachary Abel, Dr. Brynmor Chapman

What it covers. This is the math that computer science uses. It starts with proofs: how to write one, and how induction works. Then it covers sums and growth rates, number theory with a little cryptography, graphs, counting, and probability. It is not a calculus course, but MIT asks for Calculus I first. The main reading is a free textbook, Mathematics for Computer Science by Lehman, Leighton and Meyer.

Before you start. Needs Calculus I first. Do stage 1 of the math path.

The hardest part. Probability, the last unit, is the longest: 7 of the 24 lectures. The course does not name a hardest unit; this is our pick from its length. If you have never written a proof, the first unit will feel hard too. Do not rush it. Every later unit uses proofs.

What you can skip. The readings say to skip section 22.4 (recurrences), and that section 17.4 (probability) can be skipped. Lecture 24 (Chebyshev and Chernoff bounds) is the last topic. 6.006 does not list it among the skills it expects.

Why it comes here. Step 3 needs it: MIT lists 6.1200J as a prerequisite of 6.1210. The 6.006 syllabus names what it expects you to know: "set theory, relations and logic, combinatorics, proofs, recursion, number theory, graph theory, and probability." Theory of Computation (18.404J) needs it too.

Which edition. Watch the 2024 lectures. This edition posts no exams. Test yourself with 6.042J (Fall 2010), the older edition of the same course. Its 2010 final has no posted solutions, so use its 2008 final, which does.

Videos that play here
24 (full lectures)
Problem-set solutions
No
Exams
No
Exam solutions
No
Free account needed to play the videos here
Yes

MIT catalogue, 6.1200J: Prereq: Calculus I (GIR) · MIT units: 5-0-7 (12 in all) · source, checked

Done means: Pass the 2008 final exam posted with 6.042J (Fall 2010), graded by yourself with MIT's solutions. The midterm there has solutions too. The 2008 exam was written for an older term, so check its topics against the 2024 lectures first. Test course: 6.042J Mathematics for Computer Science (Fall 2010).

Stuck? The free textbook (PDF). The lecture notes and warm-up problems. For worked solutions, the 6.042J (Fall 2010) recitation problems, which include solutions.

  • Test edition: 6.042J Mathematics for Computer Science · Fall 2010 · Prof. Tom Leighton, Dr. Marten van Dijk

    The older edition of step 2. Use it to test yourself. It posts past finals from 2004, 2006 and 2008 with solutions, and a midterm with solutions. Its own 2010 final has no posted solutions.

    Videos that play here
    25
    Problem-set solutions
    No
    Exams
    Yes
    Exam solutions
    Yes
    Free account needed to play the videos here
    Yes

Step 3: 6.006 Introduction to Algorithms

Spring 2020 · Prof. Erik Demaine, Dr. Jason Ku, Prof. Justin Solomon

What it covers. This is the first algorithms course. It teaches the basic ways to store data: arrays, hash tables, binary search trees and heaps. Then it teaches the classic ways to solve problems with them: sorting, graph search, shortest paths and dynamic programming. You learn to say how fast an algorithm runs and to prove that it is correct. The problem sessions work through example problems with the instructors, a problem session for most problem sets.

Before you start. Do Problem Set 0. MIT uses it to check the prerequisites, and it posts the solutions. The course says: "We strongly caution against taking 6.006 before having fulfilled the listed prerequisites." 6.006 assignments on MIT OCW.

The hardest part. Dynamic programming (lectures 15 to 18). It is the longest single topic: four lectures, its own problem session, and a quiz right after part 3. This is our pick from the calendar. Try each problem-session problem before you look at the answer.

What you can skip. Lecture 21, "Algorithms—Next Steps", is a look ahead and has no lecture notes. Skip it if short on time.

Why it comes here. Step 4 needs it. MIT lists 6.1210, its current Introduction to Algorithms, as a prerequisite of 6.1220J (6.046).

Videos that play here
32 (lectures, problem sessions and quiz reviews)
Problem-set solutions
Yes
Exams
Yes
Exam solutions
Yes
Free account needed to play the videos here
Yes

MIT catalogue, 6.1210: Prereq: 6.100A and (6.1200[J] or (6.120A and (6.3700, 6.3800, 18.05, or 18.600))) · MIT units: 5-0-7 (12 in all) · source, checked

Done means: Pass the final exam, graded by yourself with MIT's solutions. Quizzes 1 to 3 also have solutions. Use them as checks along the way.

Stuck? The problem-session videos, one for most problem sets. Recitation notes. Quiz reviews and problem-set solutions. Optional book: Cormen, Leiserson, Rivest and Stein (CLRS); the course says it is not required.

  • Other edition: 6.006 Introduction to Algorithms · Fall 2011 · Prof. Erik Demaine, Prof. Srini Devadas

    More programming. Each problem set has a programming part and a theory part. MIT posts code solutions with the staff's test data, so you can grade your own code. It also has exams with solutions. Its recitation videos are on MIT OCW only; they do not play here.

    Videos that play here
    24
    Problem-set solutions
    Yes
    Exams
    Yes
    Exam solutions
    Yes
    Free account needed to play the videos here
    Yes

Step 4: 6.046J Design and Analysis of Algorithms

Spring 2015 · Prof. Erik Demaine, Prof. Srini Devadas, Prof. Nancy Lynch

What it covers. This is the second algorithms course. Step 3 taught known algorithms. This one teaches you to design new ones and prove that they work and are fast. Topics include divide and conquer, randomized algorithms, dynamic programming, greedy algorithms, network flow, linear programming, hard problems (NP-completeness and approximation), and cryptography. The problem sets also have exercises to solve but not hand in; the course says their material is tested on the exams.

The hardest part. Complexity (lectures 16 to 18, with two recitations): NP-completeness, approximation and fixed-parameter algorithms. It has the most sessions of any topic. This is our pick from the calendar.

What you can skip. Short on time? Skip distributed algorithms (lectures 19 and 20) and cache-oblivious algorithms (23 and 24). MIT's current description of 6.1220J does not list distributed algorithms.

Why it comes here. This is the last numbered step. See "After this path" below for what comes next and what we do not cover yet.

Videos that play here
24 (full lectures)
Problem-set solutions
Yes
Exams
Yes
Exam solutions
Yes
Free account needed to play the videos here
Yes

MIT catalogue, 6.1220J: Prereq: 6.1200[J] and 6.1210 · MIT units: 4-0-8 (12 in all) · source, checked

Done means: Pass the final exam, graded by yourself with MIT's solutions. Quizzes 1 and 2 also have solutions.

Stuck? Problem-set solutions for all 10 sets. Textbook: CLRS, 3rd edition. The recitation videos are on MIT OCW only; they do not play here.

Alongside steps 3 and 4: 18.404J Theory of Computation

Fall 2020 · Prof. Michael Sipser

What it covers. This course asks what computers can do at all, and how hard problems are. It has three parts. Automata and languages: finite automata, regular expressions and grammars. Computability: Turing machines, and problems no program can solve, such as the halting problem. Complexity, the biggest part: time and space, P and NP, NP-completeness. You can start it after step 2; it does not need 6.006.

The hardest part. Complexity theory. The course gives it 7 of its 12 weeks.

What you can skip. The readings skip some sections, for example section 2.4; skip what the course skips. The last two lectures (interactive proofs, and coNP ⊆ IP) are the most advanced. Nothing after this path needs them.

Why it comes here. It ends the theory side of the path. MIT also has a gentler course on the same theme, 6.1400J; MIT calls 18.404 "A more extensive and theoretical treatment" of it.

Videos that play here
25 (full lectures, recorded online in 2020)
Problem-set solutions
No
Exams
Yes
Exam solutions
No (MIT's exams page does post solutions to a 2006 sample final)
Free account needed to play the videos here
Yes

MIT catalogue, 18.404: Prereq: 6.1200[J] or 18.200 · MIT units: 4-0-8 (12 in all) · source, checked

Done means: Solve the six problem sets. Then take the 2006 sample final and grade it with its solutions. That is the only posted exam with solutions; the problem sets have none. Where the solutions are.

Stuck? Textbook: Sipser, Introduction to the Theory of Computation, 3rd edition (the course says the 2nd edition is missing some practice problems). The posted problem sets are from 2006 and use the 2nd edition's problem numbers. The lecture slides.

6.006 or 6.046: which first?

6.006 first. MIT's catalogue lists 6.1210 (today's Introduction to Algorithms, the course 6.006 was) as a prerequisite of 6.1220J (6.046). The 6.046 syllabus says: "This course assumes that students know how to analyze simple algorithms and data structures from having taken 6.006." 6.006 teaches the standard data structures and algorithms. 6.046 teaches you to design and prove new ones.

Where MIT does it differently

  • MIT's catalogue now tells people with no programming experience to take 6.100A and then 6.100B, over two terms. We use 6.100L, MIT's full-term version of 6.100A for people with no experience. 6.100B is our optional step 1b (on OCW as 6.0002).
  • MIT accepts a second way into 6.1210 (6.006): 6.120A plus a probability subject such as 18.05. We use the main way, 6.1200J. 18.05 is in our math path.
  • MIT accepts 18.200 instead of 6.1200J before 18.404. We use 6.1200J because the algorithm steps need it anyway.
  • MIT renumbered its CS subjects. The OCW editions here use the old numbers. 6.0001 is now 6.100A, and 6.046 is now 6.1220. 6.006 is the course now called 6.1210, Introduction to Algorithms.
  • MIT Math's Computer Science roadmap puts 18.062 (the same subject as 6.1200J) in its first stage and 18.404 in its second. That matches our order.

After this path: what we do not cover yet

This path stops at algorithms and theory. Computer systems are the next part of a CS degree. We do not have a good path for them here yet. These are the gaps.

  • 6.004 Computation Structures (now 6.1910). How a computer works, from logic gates up. MIT's prerequisite is Physics II, 6.100A, and a course in C and assembly (6.1903 or 6.1904). No video edition of Physics II (8.02) is on RedLectern yet, and 6.1903 and 6.1904 are not on OCW in our data. Our 2017 edition of 6.004 has short video clips and no exams. Our 2009 edition has exams with solutions but no videos here.
  • 6.033 Computer System Engineering (now 6.1800). Big software systems: networks, operating systems, fault tolerance. MIT lists 6.1910 (6.004) first. Our 2018 edition has no lecture videos. Its one video is a talk for teachers about recitations.
  • 6.824 Distributed Computer Systems Engineering (now 6.5840). A graduate course. MIT lists 6.1800 or 6.1810 first. Our 2006 edition has lecture notes, and exams without solutions.

How to study each step

  • Test yourself. Close the notes and work problems from memory. In one study, students who tested themselves on a text remembered 56% of it a week later; students who reread it remembered 42% (Roediger & Karpicke, 2006).
  • Space it out. Come back to old problems about a week later. In one math study, practice split over two sessions a week apart scored 74% on a test a week later; the same practice in one session scored 49% (Rohrer & Taylor, 2007).
  • Mix problem types. In a small study of 18 students, mixed practice scored 63% a week later; one type at a time scored 20%. Mixed practice felt harder (Rohrer & Taylor, 2007).
  • Worked examples first. Study worked examples first when a topic is new, then fade them out (Atkinson et al., 2000; Kalyuga et al., 2003).

How to study a free MIT course on your own: a worked first week

How we chose

We started from MIT's course catalogue and kept the order its prerequisites set. We picked free OCW courses that RedLectern hosts with videos. For each step we read the course's own syllabus, calendar and exam pages on MIT OCW. "Hardest" and "skip" are our judgement from those pages, unless the course says it. Video counts, exams and the sign-in label come from our course data when the page is built. We checked the MIT catalogue on 2026-11-19.

Progress comes from the "Mark done" buttons on each course page. It is saved in this browser, and in your account if you are signed in.

For books, other courses and topics in computer science, see our Computer Science subject page.

Sources