GATE CSE Formula Sheet PDF 2027 is a 4-page revision sheet with 119 formulas and key results from all 13 subjects of the GATE CS 2027 syllabus, from Discrete Mathematics to Computer Networks. You can download it free below, print it, and use it for quick revision every day until the exam in February 2027.
The same GATE CSE formula sheet is also written out on this page, subject by subject, in order of how many marks each subject has given in recent papers. For full topic coverage, pair it with our free GATE CSE notes, the GATE CSE syllabus 2027, the official papers on our GATE CSE previous year question papers page and the full GATE CSE study material for 2027.
Download GATE CSE Formula Sheet PDF 2027
Click the link below to open the GATE CSE formula sheet PDF. It opens in your browser, and you can save or print it from there. No sign-up is needed.
Download GATE CSE Formula Sheet PDF 2027 (4 pages)
| Detail | GATE CSE formula sheet PDF |
|---|---|
| Pages | 4 (A4, print-ready) |
| Subjects | All 13 subjects of the GATE CS 2027 syllabus |
| Formulas and key results | 119 |
| Extra on each subject | Average marks per paper from the 2022 to 2026 papers |
| File size | About 90 KB |
| Price | Free |
What Is Inside the GATE CSE Formula Sheet
The table shows how many formulas each subject has in the PDF, next to the average marks that subject gave in the 8 official GATE CSE papers of 2022 to 2026 (CS-1 and CS-2). Subjects with more marks and more numericals get more space.
| Subject | Formulas in the PDF | Average marks per paper |
|---|---|---|
| Programming and Data Structures | 8 | 10.6 |
| Computer Organization and Architecture | 9 | 9.6 |
| Operating System | 9 | 8.9 |
| Computer Networks | 13 | 8.1 |
| Discrete Mathematics | 13 | 7.1 |
| Theory of Computation | 9 | 7.1 |
| Databases | 9 | 7.1 |
| Algorithms | 9 | 6.6 |
| Compiler Design | 7 | 6.4 |
| Digital Logic | 10 | 5.8 |
| Linear Algebra | 8 | 3.0 |
| Probability and Statistics | 9 | 3.0 |
| Calculus | 6 | 1.6 |
Engineering Mathematics (Discrete Mathematics, Linear Algebra, Probability and Calculus) together gives about 15 marks per paper, which is why 4 of the 13 sections are maths. Below, each section shows the most-used formulas from the PDF.
GATE CSE Formula Sheet: Programming and Data Structures
Programming and Data Structures is the highest-scoring CSE subject, at about 10.6 marks per paper. Most of its marks come from C output questions, which need practice rather than formulas, but the tree and array results in this GATE CSE formula sheet section show up almost every year.
- Row-major: address of A[i][j] = B + w × ((i − lr) × N + (j − lc)), N = columns; column-major: B + w × ((j − lc) × M + (i − lr)), M = rows
- Binary tree (root at level 0): at most 2l nodes at level l; at most 2h+1 − 1 nodes in height h; leaves n0 = n2 + 1
- Minimum height with n nodes = ⌈log2(n + 1)⌉ − 1; a complete binary tree with n nodes has height ⌊log2n⌋
- Binary tree shapes with n nodes = BSTs on n distinct keys = Cn; labelled binary trees = n!·Cn
- Heap in an array from index 1: children 2i and 2i + 1, parent ⌊i/2⌋ (from index 0: 2i + 1, 2i + 2, ⌊(i − 1)/2⌋); build-heap O(n), insert and delete O(log n)
GATE CSE Formula Sheet: Computer Organization and Architecture
COA gives about 9.6 marks per paper, and nearly all of it is numerical. Cache mapping and pipeline questions in particular are pure formula work, so this part of the GATE CSE formula sheet pays back quickly.
- CPU time = instruction count × CPI × clock cycle time = IC × CPI / clock rate; MIPS = clock rate / (CPI × 106)
- Amdahl’s law: speedup = 1 / ((1 − f) + f/s), f = fraction improved, s = speedup of that fraction
- Pipeline with k stages, n instructions, cycle time τ: total time = (k + n − 1)τ; speedup over non-pipelined = nk/(k + n − 1), tends to k
- Pipeline cycle time = largest stage delay + latch delay; CPI with stalls = 1 + stall cycles per instruction
- Cache bits: offset = log2(block size); lines = cache size/block size; direct mapped index = log2(lines); k-way: sets = lines/k; tag = address bits − index (or set) bits − offset
- AMAT = hit time + miss rate × miss penalty; hierarchical access T = H·Tc + (1 − H)(Tc + Tm); simultaneous access T = H·Tc + (1 − H)Tm
GATE CSE Formula Sheet: Operating System
OS gives about 8.9 marks per paper. Scheduling and paging numericals are common, and each one starts from 1 of these GATE CSE formula sheet lines.
- Turnaround time = completion − arrival; waiting time = turnaround − burst; response time = first CPU time − arrival
- SJF (and SRTF for preemptive) gives the minimum average waiting time; with round robin quantum q and n processes, a process waits at most (n − 1)q for its next turn
- Deadlock: n processes each needing at most k units of a resource cannot deadlock if units ≥ n(k − 1) + 1; Banker’s Need = Max − Allocation
- Paging: offset bits = log2(page size); pages = 2logical address bits/page size; frames = physical memory/page size; page table size = pages × entry size
- Effective access time with TLB (1-level table): h(t + m) + (1 − h)(t + 2m); with a k-level table, a TLB miss costs t + (k + 1)m
- Page faults: EAT = (1 − p) × m + p × s, p = fault rate, s = fault service time
GATE CSE Formula Sheet: Computer Networks
Computer Networks gives about 8.1 marks per paper. Its numericals on sliding window, CSMA/CD, subnetting and TCP are formula-driven, so this section of the GATE CSE formula sheet is the longest.
- Transmission time Tt = L/B; propagation time Tp = d/v; RTT = 2Tp when other delays are ignored
- a = Tp/Tt; stop-and-wait efficiency η = 1/(1 + 2a); with window W, η = W/(1 + 2a) up to 1; throughput = η × B
- Sequence number bits k: Go-Back-N window ≤ 2k − 1; Selective Repeat window ≤ 2k−1
- CSMA/CD minimum frame size Lmin = 2 × Tp × B
- Error detection: CRC with a degree-r generator appends r bits and catches every burst of length ≤ r; minimum Hamming distance d detects d − 1 errors and corrects ⌊(d − 1)/2⌋
- CIDR /n block: 232−n addresses, 232−n − 2 usable hosts; borrowing s bits gives 2s subnets
- IPv4 header 20 to 60 bytes (HLEN in 4-byte words); fragment offset in 8-byte units, so every fragment except the last carries a multiple of 8 data bytes
- TCP congestion control: slow start doubles cwnd every RTT up to ssthresh, then +1 MSS per RTT; on timeout ssthresh = cwnd/2 and cwnd = 1 MSS
GATE CSE Formula Sheet: Discrete Mathematics
Discrete Mathematics gives about 7.1 marks per paper. Counting, relations and graph results here are easy to forget under exam pressure, so revise this part of the GATE CSE formula sheet often.
- p → q ≡ ¬p ∨ q ≡ ¬q → ¬p (contrapositive); ¬∀x P(x) ≡ ∃x ¬P(x) and ¬∃x P(x) ≡ ∀x ¬P(x)
- |A ∪ B| = |A| + |B| − |A ∩ B|; |A ∪ B ∪ C| = |A| + |B| + |C| − |A ∩ B| − |B ∩ C| − |A ∩ C| + |A ∩ B ∩ C|
- nPr = n!/(n − r)!; nCr = n!/(r!(n − r)!); choosing r items from n types with repetition = C(n + r − 1, r)
- Catalan number Cn = C(2n, n)/(n + 1): binary tree shapes with n nodes, BSTs on n keys, valid bracket strings, stack output orders
- Relations on a set of n elements: all 2n²; reflexive 2n(n−1); symmetric 2n(n+1)/2; antisymmetric 2n·3n(n−1)/2; reflexive and symmetric 2n(n−1)/2
- Graphs: Σ deg(v) = 2|E|; simple graph has at most n(n − 1)/2 edges; tree on n vertices has n − 1 edges; labelled trees on n vertices = nn−2
GATE CSE Formula Sheet: Theory of Computation
TOC gives about 7.1 marks per paper. It has few numeric formulas, so this part of the GATE CSE formula sheet lists the state counts, closure facts and decidability results that decide most MCQs and MSQs.
- NFA with n states → equivalent DFA with at most 2n states; product DFA for L1 ∩ L2 or L1 ∪ L2 has at most m × n states
- Minimal DFA: strings with length ≡ 0 (mod n) needs n states; strings containing (or ending with) a fixed string w needs |w| + 1 states
- Pumping lemma (regular): every w ∈ L with |w| ≥ p splits as xyz with |xy| ≤ p, |y| ≥ 1 and xyiz ∈ L for all i ≥ 0
- Closure: regular languages are closed under ∪, ∩, complement, concatenation, star and reversal; CFLs under ∪, concatenation and star, but not ∩ or complement; CFL ∩ regular is a CFL
- Decidable: membership for regular, CFL and recursive; emptiness and finiteness for regular and CFL; equivalence for regular. Undecidable: CFG ambiguity, CFL equivalence, emptiness for TMs
GATE CSE Formula Sheet: Databases
Databases give about 7.1 marks per paper. Normalisation is rule-based, but indexing and B+ tree order questions are pure calculation, which is where the GATE CSE formula sheet helps.
- Superkeys: with n attributes and 1 single-attribute candidate key, 2n−1; with 2 single-attribute candidate keys, 3 × 2n−2
- Attribute closure X+: keep adding the right side of every FD whose left side is inside X+ until nothing changes
- 2NF: no partial dependency of a non-prime attribute on a key; 3NF: for every X → A, X is a superkey or A is prime; BCNF: X is a superkey
- Lossless decomposition into R1, R2: R1 ∩ R2 → R1 or R1 ∩ R2 → R2; dependency preserving if (F1 ∪ F2)+ = F+
- Blocking factor bfr = ⌊B/R⌋; blocks = ⌈r/bfr⌉; binary search on a sorted file of b blocks ≈ ⌈log2b⌉ block accesses
- B+ tree of order p: internal node p·P + (p − 1)K ≤ B; leaf pleaf(K + Pr) + P ≤ B; B tree node p·P + (p − 1)(K + Pr) ≤ B
GATE CSE Formula Sheet: Algorithms
Algorithms give about 6.6 marks per paper, and the share has been rising in recent papers. Recurrences and time complexities are the GATE CSE formula sheet lines you will use most.
- Master theorem T(n) = aT(n/b) + Θ(nk): k < logba → Θ(nlogba); k = logba → Θ(nklog n); k > logba → Θ(nk)
- T(n) = T(n/2) + 1 → Θ(log n); 2T(n/2) + n → Θ(n log n); T(n − 1) + n → Θ(n²); 2T(n − 1) + 1 → Θ(2n); T(n − 1) + 1 → Θ(n)
- Sorting: bubble and insertion O(n²) worst, O(n) best; selection O(n²) always; merge O(n log n) always with O(n) space; quick O(n log n) average, O(n²) worst; heap O(n log n)
- Graphs: BFS and DFS O(V + E) with lists, O(V²) with a matrix; Dijkstra O((V + E)log V) with a binary heap; Bellman-Ford O(VE); Floyd-Warshall O(V³)
- MST: Prim O(E log V) with a binary heap; Kruskal O(E log E); an MST has V − 1 edges; Kn has nn−2 spanning trees
GATE CSE Formula Sheet: Compiler Design
Compiler Design gives about 6.4 marks per paper. Like TOC, it is more about rules than numbers, so the GATE CSE formula sheet keeps the tests and equations that settle parser and data-flow questions.
- Parser power: LR(0) ⊂ SLR(1) ⊂ LALR(1) ⊂ CLR(1); every LL(1) grammar is LR(1); LR(0), SLR and LALR have the same number of states, CLR can have more
- LL(1) test for A → α | β: FIRST(α) ∩ FIRST(β) = ∅, and if ε ∈ FIRST(α) then FIRST(β) ∩ FOLLOW(A) = ∅
- Basic block leaders: the first statement, any target of a jump, and any statement right after a jump
- Liveness: in[B] = use[B] ∪ (out[B] − def[B]); out[B] = ∪ in[S] over successors S
GATE CSE Formula Sheet: Digital Logic
Digital Logic gives about 5.8 marks per paper. Number ranges, IEEE 754 and flip-flop equations from the GATE CSE formula sheet are quick marks if they are at your fingertips.
- De Morgan: (A + B)’ = A’B’ and (AB)’ = A’ + B’; absorption: A + AB = A, A + A’B = A + B
- Consensus: AB + A’C + BC = AB + A’C
- Boolean functions of n variables: 22n; self-dual functions of n variables: 22n−1
- n-bit range: unsigned 0 to 2n − 1; sign-magnitude and 1’s complement −(2n−1 − 1) to 2n−1 − 1; 2’s complement −2n−1 to 2n−1 − 1
- IEEE 754 single (1 + 8 + 23 bits): value = (−1)S × 1.M × 2E−127; double (1 + 11 + 52 bits): bias 1023
- Flip-flop next state: D: Q+ = D; T: Q+ = T ⊕ Q; JK: Q+ = JQ’ + K’Q; SR: Q+ = S + R’Q with SR = 0
GATE CSE Formula Sheet: Linear Algebra
Linear Algebra gives about 3 marks per paper, usually from eigenvalues, rank or systems of equations, all covered in the GATE CSE formula sheet.
- det(AB) = det(A)·det(B); det(AT) = det(A); det(kA) = kndet(A) for an n × n matrix
- Sum of eigenvalues = trace(A); product of eigenvalues = det(A); A is singular if and only if 0 is an eigenvalue
- Eigenvalues of Ak are λk; of A−1 are 1/λ; of A + kI are λ + k; of a triangular matrix are its diagonal entries
- Rank-nullity: rank(A) + nullity(A) = number of columns
- Ax = b with n unknowns: rank(A) ≠ rank([A|b]) → no solution; rank(A) = rank([A|b]) = n → unique; = r < n → infinite (n − r free variables)
GATE CSE Formula Sheet: Probability and Statistics
Probability and Statistics also gives about 3 marks per paper. The distribution formulas below cover almost every question type in recent papers.
- P(A ∪ B) = P(A) + P(B) − P(A ∩ B); P(A | B) = P(A ∩ B)/P(B); independent events: P(A ∩ B) = P(A)P(B)
- Bayes theorem: P(Ai | B) = P(B | Ai)P(Ai) / Σj P(B | Aj)P(Aj)
- E[X] = Σ x·p(x); Var(X) = E[X²] − (E[X])²; Var(aX + b) = a²Var(X); E[X + Y] = E[X] + E[Y]
- Binomial(n, p): P(X = k) = C(n, k)pk(1 − p)n−k; mean np; variance np(1 − p)
- Poisson(λ): P(X = k) = e−λλk/k!; mean = variance = λ
- Uniform(a, b): f(x) = 1/(b − a); mean (a + b)/2; variance (b − a)²/12
- Exponential(λ): f(x) = λe−λx; mean 1/λ; variance 1/λ²; P(X > x) = e−λx; memoryless
GATE CSE Formula Sheet: Calculus
Calculus gives the fewest marks, about 1.6 per paper, so a short list in the GATE CSE formula sheet is enough.
- L’Hôpital rule: for 0/0 or ∞/∞ forms, lim f(x)/g(x) = lim f'(x)/g'(x)
- limx→0 sin x/x = 1; limx→0 (1 + x)1/x = e; limx→∞ (1 + 1/x)x = e
- Maxima and minima: f'(c) = 0, then f”(c) < 0 → local maximum, f”(c) > 0 → local minimum; on [a, b] also check the end points
- Mean value theorem: f'(c) = (f(b) − f(a))/(b − a) for some c in (a, b); Rolle: if f(a) = f(b) then f'(c) = 0
2027 Syllabus Changes That Affect the GATE CSE Formula Sheet
The GATE CS 2027 syllabus from IIT Madras changed a few lines, and this GATE CSE formula sheet follows the new version:
- Computer Networks: UDP, ICMP, ARP, DHCP, SMTP and FTP are no longer named, so their header sizes and port facts are left out. Error detection, Ethernet, CIDR, NAT, fragmentation, TCP flow and congestion control, DNS and HTTP stay in.
- COA: secondary storage is no longer listed under memory hierarchy. Disk access time is kept only under OS, because CPU and I/O scheduling is still in the OS syllabus.
- Linear Algebra: LU decomposition is named, so it has its own line in the PDF.
- Compiler Design: data flow analyses (constant propagation, liveness and common subexpression elimination) are named, so the liveness and reaching definitions equations are included.
For the full list of changes, see our GATE CSE 2026 vs 2027 syllabus comparison.
How to Revise With the GATE CSE Formula Sheet
A formula sheet only helps if you read it often and test yourself on it. This simple routine fits into 15 to 20 minutes a day:
- Read 2 sections a day: cover all 13 subjects in about a week, then start again. By the exam you will have gone through the full GATE CSE formula sheet 8 to 10 times.
- Cover and recall: hide the right side of a line, say the formula out loud, then check. Mark every line you got wrong with a pen.
- Solve 1 question per marked line: pick a previous year question that uses that formula, so the formula sticks with its use, not just its shape.
- Add your own lines: write the formulas you keep forgetting on the back of the printed pages, such as a cache tag width trick or a subnet shortcut that worked for you.
- Last 7 days: read only the GATE CSE formula sheet and your marked lines, not full notes. Take the official GATE 2027 mock test once to practise using these formulas on the virtual calculator.
Some subjects need more than formulas. C programming output questions, normal form checks and parsing table questions are won by practice, so keep solving full papers alongside this sheet. Our GATE CSE mock test series and the best GATE books for CSE list will help with that. For deeper practice on the maths part, read our guide on engineering mathematics formulas for GATE.
FAQs on GATE CSE Formula Sheet
Is this GATE CSE formula sheet PDF updated for the GATE 2027 CS syllabus released by IIT Madras?
Yes. It covers all 13 subjects of the GATE CS 2027 syllabus. Topics that are no longer named, such as UDP, ICMP, ARP, DHCP, SMTP and FTP in Computer Networks, are left out, and newly named items like LU decomposition and data flow analyses are included.
Can a GATE CSE formula sheet alone help me score good marks, or do I still need full notes and practice?
A GATE CSE formula sheet is a revision tool, not a replacement for study. It helps you recall formulas fast in numerical subjects like COA, OS, Computer Networks and Databases. Marks in C programming output, TOC and Compiler Design still come from concept practice, so solve previous year papers alongside the sheet.
Which subjects in the GATE CSE formula sheet should I revise first if I have only a few weeks left?
Start with the subjects that give the most marks and the most numericals: Computer Organization and Architecture, Operating System and Computer Networks. Then cover Programming and Data Structures, Databases and Discrete Mathematics. Calculus gives the fewest marks, so leave it for the end.
Will any formula sheet or notes be allowed inside the GATE 2027 exam hall?
No. GATE is a closed-book computer-based test. You only get an on-screen virtual calculator and a scribble pad, so every formula has to be in your memory. That is why daily revision with the formula sheet matters.
Can I print the GATE CSE formula sheet PDF and stick it on my study wall?
Yes. The PDF is A4 and print-ready, and it is free. Many students print the 4 pages and keep them on the wall or desk, reading 2 sections a day so that the whole sheet is covered once a week.
How many times should I read the GATE CSE formula sheet before the exam so that I do not forget formulas?
Aim for 8 to 10 full rounds before February. Reading 2 subjects a day finishes the sheet in about a week. Use the cover and recall method, mark the lines you get wrong, and in the last 7 days read only the sheet and your marked lines.
