Introduction
Choosing IB subjects for a computer science degree can feel like a decision about your entire future. In DP1, it is better treated as a decision about keeping the right doors open. For many selective computer science courses, mathematics is the most important subject choice. Mathematics: Analysis and Approaches (AA) at Higher Level (HL) is often the broadest option, but the right combination depends on the countries and universities you may apply to, the exact course requirements, and the workload you can sustain.
Computer Science (CS) is useful preparation, but it is not universally required for university entry. Physics can be a strong companion, especially if you are also considering engineering or courses with a theoretical focus. Before you choose, check current requirements for real courses, then balance eligibility against your strengths and other interests.
Quick overview
- Make mathematics your first subject to investigate. Check both the required course and level, not just whether a university asks for “maths.”
- Consider Maths AA HL if it fits your ability and target courses. Do not assume Maths Applications and Interpretation (AI), or SL mathematics, will meet every prerequisite.
- Take IB Computer Science if it interests you and fits your timetable. It can build relevant knowledge, but it does not replace a mathematics prerequisite.
- Add Physics if it supports your wider options, interests, or target course requirements.
- Verify each university’s current course page before locking in subjects. Requirements vary and can change.

Which IB subjects matter most for computer science?
Mathematics: start here
Computer science degrees use more mathematics than many new students expect. Depending on the course, students may encounter discrete mathematics, probability, statistics, linear algebra, calculus, and formal reasoning. That does not mean every programmer needs the same mathematical toolkit. It does explain why admissions teams may set a mathematics prerequisite even when an applicant has already studied CS.
For IB students, the practical question is not simply “Should I take maths?” It is which mathematics course, at which level, meets the entry requirements for the degrees I might apply to? The IB offers AA and AI, each at SL and HL. Broadly, AA emphasizes mathematical analysis and approaches, while AI emphasizes applications and interpretation. Those course descriptions are not a substitute for checking university rules: a course may accept both, prefer one, or specify a particular level.
If you have several possible destinations, Maths AA HL is often the more flexible option for mathematically demanding computer science programmes. But “often” is not “always,” and it is not a reason to choose a level you cannot manage without checking the details. Start with the IB mathematics course information and compare it with official admissions pages for your shortlist.
Computer Science: valuable, but not always required
Taking IB Computer Science can help you explore programming, computational thinking, and systems before university. It can also help you decide whether you enjoy the subject beyond the idea of building apps or games. But many computer science degrees do not require applicants to have studied CS at school. Some courses teach programming from the beginning; others may value it without making it an entry requirement.
That makes CS a choice about preparation and interest, as well as admissions. If you enjoy the subject and can take it without weakening a required subject, it can be a sensible option. If your school does not offer it, or your timetable makes it a poor fit, do not assume that your degree plans are over. Focus first on meeting the published prerequisites.
RevisionDojo’s guide to what universities look for in IB Computer Science applicants can help you think beyond the subject title and consider the wider application. For a closer look at the course itself, read whether to take IB Computer Science at HL or SL.
Physics: a useful partner for some pathways
Physics can complement computer science by developing quantitative problem-solving and supporting students who are also considering engineering, robotics, electronics, or physics-heavy programmes. It may be required or recommended for some related degrees. For a computer science course specifically, requirements differ, so do not add Physics just because it sounds like the “serious” choice.
The trade-off is workload. Physics HL alongside Maths AA HL can make sense for a student who enjoys both and wants to keep engineering options open. It may be less sensible if it crowds out another required subject, creates an unsustainable HL load, or leaves little time for the rest of the Diploma Programme. Use the course requirements, your genuine interest, and your likely performance to decide. RevisionDojo’s guide to pairing IB subjects with Computer Science explores common combinations and their trade-offs.
HL vs SL: how should you choose?
HL is not automatically better for every subject. It matters when a university explicitly requires or prefers a subject at HL, and the depth of an HL course may prepare you for more advanced study. But taking a subject at HL does not compensate for choosing the wrong course, such as a maths option that a particular programme does not accept.
For each degree on your shortlist, record the exact requirement: subject, course variant, level, and any minimum grade if stated. Pay particular attention to Mathematics AA versus AI and HL versus SL. A requirement that says “Mathematics at HL” may not mean every IB mathematics course is accepted. Where a page is unclear, ask the university admissions team rather than relying on a forum post or a general subject-combination guide.
Then consider your own evidence. Are you consistently comfortable with the material in your current maths course? Do you enjoy solving unfamiliar problems, or are you choosing HL mainly because you fear that SL will close every door? Speak with your teacher about the step up in pace and content. The best choice is the strongest level that meets your likely requirements and is realistic alongside your other subjects.
For a broader explanation of how admissions teams may interpret levels, see RevisionDojo’s guide to how universities view HL vs SL subjects. If you are still comparing combinations, its IB subject combinations guide offers another way to test your options.
Make the decision with a shortlist
A student applying to one country and a student applying across several systems may need different combinations. Even universities in the same country can set different requirements, and “Computer Science” may sit in a department with its own admissions rules. So use course pages, not broad assumptions about what all universities want.
Create a shortlist of around five to eight courses that genuinely interest you. For each one, check the official admissions page and note the required subjects, levels, grades, and any alternative routes. Include a mix of aspirational and realistic options, and revisit the list if your interests shift during DP1. These are planning notes, not a promise that requirements will stay unchanged until you apply.
If your choices are not settled yet, choose subjects that preserve plausible options without turning your timetable into a collection of credentials you do not want to study. A student who enjoys maths and programming might prioritize Maths AA HL and consider CS. A student considering both computing and engineering might investigate Physics too. Another student who prefers data-oriented applications should check whether their target courses accept their chosen maths pathway before deciding.
A simple decision checklist
Before submitting your choices, ask yourself:
- Have I checked official entry requirements for specific computer science courses, not just general advice?
- Do I know whether each course accepts Maths AA, Maths AI, or both?
- Have I confirmed whether maths must be HL, and whether a minimum grade is specified?
- Is IB Computer Science required, recommended, or simply an optional way to explore the subject?
- Would Physics keep another degree route open that I genuinely want to consider?
- Can I manage the proposed HL subjects while doing consistent work across the whole Diploma Programme?
- Have I asked my maths teacher or IB coordinator about the transition to the course and level I am considering?
If you cannot answer the first three questions yet, pause before making a final choice. One hour checking course pages can prevent a year of studying a combination that does not match your goals.
How to prepare once you have chosen
Subject selection is a starting point, not a guarantee of admission. Your grades, application, and the specific requirements of each course matter too. In DP1, focus on building durable habits: practise maths regularly, review mistakes rather than only checking scores, and use small programming projects to find out what kinds of problems you enjoy.
RevisionDojo can support that routine with its Questionbank, Study Notes, and Flashcards for reviewing concepts, plus AI Chat and grading tools when you want help understanding an answer. As applications approach, Predicted Papers and Mock Exams can add timed practice. Its Coursework Library and Tutors can help with other parts of the IB workload, so university planning does not become another task you have to manage alone.
The goal is not to guess the perfect combination on day one. It is to make an informed choice, check it against real requirements, and adjust your plan as you learn more. When you are ready, take RevisionDojo’s HL/SL decision quiz and save your result. It gives you a useful record of why you chose each level, which you can revisit after speaking with your teachers or researching more courses.
