• Home
  • News
  • Fortune 500
  • Tech
  • Finance
  • Leadership
  • Lifestyle
  • Rankings
  • Multimedia
Right Arrow Button IconLeft Arrow Button Iconeducation
Right Arrow Button IconLeft Arrow Button IconEducation Articles
Right Arrow Button IconLearn the basics of computer science for free: 6 universities with online courses

6 universities, including Harvard, offering free online computer science courses 

By
Preston Fore
Preston Fore
,
Sydney Lake
Sydney Lake
and
Jasmine Suarez
Jasmine Suarez
By
Preston Fore
Preston Fore
,
Sydney Lake
Sydney Lake
and
Jasmine Suarez
Jasmine Suarez
September 28, 2022, 1:54 PM ET
Student uses a computer while sitting in a computer lab.
Getting started in computer science can be tricky, but many top universities offer free online courses.Getty Images

It’s a good time to be interested in computer science. Over the next decade, the country is expected to open up hundreds of thousands of new jobs as software developers, data scientists, and software engineers.

Landing one of these coveted roles can not only grant you lifelong job security but also a career that pays well over $100k. In fact, computer and information research scientists earn median pay of $145,080 per year, according to the U.S. Bureau of Labor Statistics. 

Advertisement
Berkeley's Data Science Master's Master Key Skills in Data Mining, Machine Learning, Research Design & More

The online Master of Information and Data Science (MIDS) program is preparing the next generation of experts and leaders in the data science field and providing students with a UC Berkeley education without having to relocate. Students graduate with connections to UC Berkeley’s extensive alumni network in the Bay Area and across the world. All international applicants will be required to submit official Test of English as a Foreign Language (TOEFL) scores.

Learn More
Berkeley's Data Science Master's
Learn More
  • GRE RequiredNo
  • Part TimeYes

However, becoming an experienced tech expert does not happen overnight, and many individuals have master’s degrees in computer science or a related field.

For those early in their career—or are thinking about transitioning into tech—it can be best to start exploring the subject before committing to a degree program. The good news is that many top universities offer online, introductory computer science courses—for free. Here are some of the best offerings to get started in computer science.

InstitutionCourseCommitment
Carnegie Mellon UniversityPrinciples of Computation with Python10 modules
Harvard UniversityComputer Science for Business Professionals12–36 hours
MITIntroduction to Computer Science and Programming Using Python4–6 months (26 lectures available)
Princeton UniversityProgramming with a Purpose88 hours
Stanford UniversityComputer Science 10124–26 hours
Vanderbilt UniversityIntroduction to Programming with MATLAB35 hours
[EDIT.MOBILE_TITLE]

6 universities offering free, online computer science foundations

Carnegie Mellon University: Principles of Computation with Python

Touted as a top university for its tech-related programs, Carnegie Mellon University offers an intro course on one of the more widely used programming languages, Python. Principles of Computation with Python is offered through the school’s Open Learning Initiative. While the course teaches users about programming in Python, it’s also targeted at a general audience to learn more about computer science and to “show students that there is much more to computer science than learning to write code,” according to Carnegie Mellon. The course is broken down into 10 modules that gradually get more technical. Areas of focus include data structures, encryption, and cellular automata.

Carnegie Mellon also offers free and open courses to learn about computer hardware and software as well as how to program in Java.

Harvard University: Computer Science for Business Professionals

This widely popular course hosted by Harvard University is designed for managers, product managers, and other business professionals. The six-week long course teaches participants about computational thinking, programming languages, web development, and cloud computing, among other subjects. 

Computer Science for Business Professionals, also known as CS50, is self-paced and requires about two-to-six hours of study per week. Taught by David J. Malan, a computer science professor at Harvard University, CS50 is also Harvard’s largest online course and has been completed by more than 2 million people. And former YouTube CEO Susan D. Wojcicki even said, “CS50 changed my life.”

The course is hosted through edX, and while the content is free, payment is required to receive the certificate. CS50’s Introduction to Programming with Scratch and CS50’s Introduction to Artificial Intelligence with Python are related offerings you may also want to check out.

MIT: Introduction to Computer Science and Programming Using Python

Massachusetts Institute of Technology (MIT) offers free access to thousands of courses, including many related to computer science, through its OpenCourseWare. While the platform does have many arguably outdated offerings, the fall 2022 edition of the MIT class Introduction to Computer Science and Programming Using Python, is available and is targeted to those with no programming experience. Twenty-six lectures can be accessed, including topics like iteration, Lambda functions, and plotting. Lecture notes, problem sets, programming assistants, and recitation notes are also available for viewing. Going through all the material may take you several months.

Learn more: What’s the difference between coding and programming?

Princeton University: Programming with a Purpose

The Programming with a Purpose course at Princeton believes learning computer science is as important as reading and writing. “Learning to program is an essential part of the education of every student, not just in the sciences and engineering, but in the arts, social sciences, and humanities, as well,” the description says. Professor Robert Sedgewick and Kevin Wayne walk students through the basics of programming. While it is taught in Java, the goal is to teach the skills application in a variety of modern computing environments.

The 88-hour program is offered for free, but you may need to make an account with Coursera.

Stanford University: Computer Science 101

Stanford University, located in the heart of Silicon Valley, hosts a self-paced introductory course Computer Science 101 to teach the fundamentals of the field to users with no prior experience. The course starts with a general background on computers, software, hardware, and internet, and also allows participants to begin to learn the basics of coding. 

The course takes six weeks to complete at about four-to-six hours per week. It’s taught by one of Stanford’s senior computer science lecturers Nick Parlante whose lectures and other videos appear widely on YouTube.

Vanderbilt University: Introduction to Programming with MATLAB

Vanderbilt University, which is ranked No. 5 on Fortune’s list of the best in-person master’s in computer science, offers an Introduction to Programming with MATLAB course. The course is targeted to users with little to no programming experience and teaches participants how to program in MATLAB, a programming language. This language is often used by scientists and engineers to solve matrices and linear algebra, but it’s “easy to learn,” and “versatile,” according to Vanderbilt. 

The course takes about 35 hours to complete and is the first course in Vanderbilt’s free online MATLAB Programming for Engineers and Scientists Specialization, which includes two other courses. 


Frequently asked questions

Can I study computer science for free?

Yes, there are countless ways to study computer science for free. freeCodeCamp is one designation many people start, but many universities and organizations offer free computer science programming. Another popular way to learn is by watching tutorial videos on YouTube.

Can I self-learn computer science?

Yes, many tech experts learn the basics of computer science on their own. There are hundreds, if not thousands, of free programs, videos, and assignments you can engage with to learn the foundations of computer science.
Learn more: Check out our guide to how to learn to code and advice for beginners.

Can I get a Harvard certificate for free?

No, while you can conduct Harvard coursework for free— including the popular CS50—payment is required to get the certification. Exact costs may vary, but a CS50 certification generally costs $299.

Are Harvard CS courses free?

Yes, Harvard does offer computer science courses online for free, including the popular CS50. However, in order to get a certification, you will have to pay.

Read more

  • Achieve your goal of becoming an expert in data science by choosing from our list of the best masters in data science programs.
  • Our ranking of the best online data scientist masters programs can help you find the program that best fits your schedule.
  • Getting a masters degree doesn’t have to break the bank. Here’s our list of the most affordable data science masters degree programs.
  • Regardless of how you scored on the GRE, you can still find an online data science masters program.
  • Choose from our list of the best online masters in computer science programs to help you make your next career move.
  • Advertisement
    Full-Stack Web Development CertificateStart your coding career today

    Get comprehensive career training in web development and software engineering. Life is unpredictable, so we're flexible: attend in-person or online, full-time or part-time, with access to class recordings after each session.

    Visit Website
    Full-Stack Web Development Certificate
    Visit Website
    About the Contributors
    Preston Fore
    By Preston ForeSuccess Reporter
    LinkedIn iconTwitter icon

    Preston Fore is a reporter on Fortune's Success team.

    See full bioRight Arrow Button Icon
    Sydney Lake
    By Sydney LakeAssociate Editor
    LinkedIn iconTwitter icon

    Sydney Lake is an associate editor at Fortune, where she writes and edits news for the publication's global news desk.

    See full bioRight Arrow Button Icon
    Jasmine Suarez
    Reviewed By Jasmine SuarezSenior Staff Editor
    LinkedIn iconTwitter icon

    Jasmine Suarez was a senior editor at Fortune where she leads coverage for careers, education and finance. In the past, she’s worked for Business Insider, Adweek, Red Ventures, McGraw-Hill, Pearson, and more. 

    See full bioRight Arrow Button Icon
    Top Articles
    Popular image
    2024 real estate school review: AceableAgent
    ByPreston ForeJune 24, 2024
    Popular image
    10 free data analytics courses you can take online
    ByRich GrisetApril 18, 2024
    Popular image
    Northwestern, Columbia, and UPenn have the best EMBA programs in the country. Here's why
    ByPreston ForeJuly 22, 2024
    Advertisement
    Syracuse University's Online M.S. in Computer ScienceEarn a Master of Science in Computer Science Online in as few as 15 Months

    Syracuse University's College of Engineering and Computer Science offers an online M.S. in Computer Science focusing on subjects crucial to understanding emerging systems.

    Learn More
    Syracuse University's Online M.S. in Computer Science
    Learn More
    Rankings
    • 100 Best Companies
    • Fortune 500
    • Global 500
    • Fortune 500 Europe
    • Most Powerful Women
    • Future 50
    • World’s Most Admired Companies
    • See All Rankings
    Sections
    • Finance
    • Leadership
    • Success
    • Tech
    • Asia
    • Europe
    • Environment
    • Fortune Crypto
    • Health
    • Retail
    • Lifestyle
    • Politics
    • Newsletters
    • Magazine
    • Features
    • Commentary
    • Mpw
    • CEO Initiative
    • Conferences
    • Personal Finance
    • Education
    Customer Support
    • Frequently Asked Questions
    • Customer Service Portal
    • Privacy Policy
    • Terms Of Use
    • Single Issues For Purchase
    • International Print
    Commercial Services
    • Advertising
    • Fortune Brand Studio
    • Fortune Analytics
    • Fortune Conferences
    • Business Development
    About Us
    • About Us
    • Editorial Calendar
    • Press Center
    • Work At Fortune
    • Diversity And Inclusion
    • Terms And Conditions
    • Site Map

    © 2025 Fortune Media IP Limited. All Rights Reserved. Use of this site constitutes acceptance of our Terms of Use and Privacy Policy | CA Notice at Collection and Privacy Notice | Do Not Sell/Share My Personal Information
    FORTUNE is a trademark of Fortune Media IP Limited, registered in the U.S. and other countries. FORTUNE may receive compensation for some links to products and services on this website. Offers may be subject to change without notice.