What is the 45 Rule in Sudoku? Advanced Pattern Recognition Explained (2026)
Learn the 45 rule in Sudoku: why rows, columns, and boxes sum to 45, how advanced solvers use it for arithmetic shortcuts and Killer innies/outies, step-by-step examples, common mistakes, and how it fits with fish and chain techniques.
What is the 45 Rule in Sudoku? Advanced Pattern Recognition Explained
The 45 rule is one of the most reliable arithmetic facts in 9×9 Sudoku: in every row, column, and 3×3 box, the digits 1 through 9 appear exactly once, and
1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 = 45.
So each house (a row, column, or box) sums to 45. That sounds elementary—and it is—but experienced solvers treat it as a pattern-recognition tool: a fast way to recover hidden digits, sanity-check candidates, and (in Killer Sudoku and other sum-based variants) derive innie and outie values when cages almost fill a house.
This guide explains what the 45 rule is, how it works in classic Sudoku versus variant puzzles, walks through a concrete example, flags common mistakes, and shows where it sits alongside techniques like X-Wing and Swordfish. For broader technique coverage, see our hub on Sudoku Techniques & Strategies and the linked guides below.
What is the 45 Rule?
In standard Sudoku, the symbols in any completed row, column, or box are always the set {1,…,9}. The sum is fixed:
Sum of any full house = 45.
That is the entire rule. It is not a solving technique by itself; it is a constraint you can exploit whenever sums help you reason about unknown cells—most famously when several cells in a house are still blank but you know enough about the others to infer a total, or when cage sums in Killer Sudoku interact with the geometry of rows, columns, and boxes.
If you are new to advanced reasoning, think of the 45 rule as bookkeeping: it turns “which digits are missing?” into “what total is missing?”—and totals are often easier to spot in overlapping regions.
How the 45 Rule Works
Classic 9×9 Sudoku
Pick any row with nine cells. When the puzzle is finished, those nine values are 1–9 in some order, so their sum is 45 at completion. During solving, you can apply the same idea to partial information:
- If eight cells in a house are decided (or their values are otherwise known), the ninth is 45 minus that sum.
- If you know the sum of several unknown cells in one house because of relationships elsewhere, you can sometimes narrow candidates without a full fish or chain.
In pure classic Sudoku, you rarely need the 45 rule—most of the time, candidate logic or patterns such as X-Wing and Swordfish are the direct tools. Where the 45 rule still helps is verification (catching a placement that breaks a house total) and mental compression (tracking groups of high/low digits quickly).
Killer Sudoku and sum-heavy variants
In Killer Sudoku, cages have target sums. Because each house still contains 1–9 exactly once, each house still sums to 45. That creates the classic innie/outie situations:
- Innie: one or more cells sit inside a house but outside the cages you are comparing; their sum is 45 − (sum of the cage totals that lie entirely in that house) (adjust when cages cross the boundary—count only the parts inside).
- Outie: a cell lies outside the house fragment you summed but is part of the cage arithmetic you are comparing; it can be solved as the difference between cage sums and the expected multiple of 45.
Exact bookkeeping depends on how cages split across the boundary, which is why the 45 rule is taught as a principle (“compare cage totals to 45 × number of complete houses in view”) rather than one formula for every shape.
Step-by-Step Example (Classic House)
Suppose in a single row you have placed eight digits and exactly one cell remains empty. The known digits are:
2, 9, 4, 1, 6, 3, 7, 5
Their sum is 37. Because the row must sum to 45, the last digit is 45 − 37 = 8.
Row sketch (eighth cell empty):
Sum of known digits = 37 → missing digit = 45 − 37 = 8
You would almost never need arithmetic to see that 8 is missing—but the same logic applies when multiple cells are blank yet their combined sum is forced by cage clues or by overlapping house arithmetic. That is where the 45 rule becomes a pattern recognition habit rather than a party trick.
Overlap idea (two houses)
When you add the sums of two rows, you get 90, but the three cells where those rows intersect a shared box are counted twice if you are not careful. Expert use of the 45 rule is often about subtracting overlaps so you recover the sum of a small set of unknowns. The details are puzzle-specific; the invariant is always: each complete line or box totals 45.
Practice the 45 rule in Sudoku Face Off with our advanced puzzles: sum reasoning pairs naturally with careful candidate work on hard grids, and the app gives you a clean place to drill pattern recognition without paper clutter. Download from Sudoku Face Off (free download).
Common Mistakes
- Double-counting intersections: When you sum two rows, two columns, or a row and a box, cells in the overlap must be accounted for exactly once unless you are deliberately using inclusion–exclusion.
- Using 45 where the ruleset differs: In puzzles that are not classic 1–9 in every house (some variants use different symbols or missing digits), the magic total may not be 45. Always read the rules.
- Treating arithmetic as a substitute for logic: In classic Sudoku, if a deduction does not follow from uniqueness in houses or given constraints, it is not valid. The 45 rule is a consequence of those constraints, not a license to guess.
- Killer cage boundaries: Mis-identifying which part of a split cage belongs “inside” the house you are summing leads to wrong innie/outie values. Sketch the boundary before you subtract.
Practicing the 45 Rule
Use this checklist the next time you solve:
- Spot complete houses with few unknowns and ask whether their missing sum restricts candidates (classic or variant).
- In Killer puzzles, compare cage totals visible in a region with 45 × (number of complete houses) you can trust, then resolve the leftover as an innie or outie.
- Cross-check a suspicious placement by recomputing a house sum mentally—fast sanity checks prevent long backtracks.
- Pair arithmetic with advanced sudoku techniques from our how to solve hard Sudoku and extreme Sudoku guides when the grid stops yielding singles.
Frequently asked questions
Does the 45 rule work on every Sudoku variant?
It applies whenever every row, column, and (if present) standard 3×3 box must hold exactly the digits 1–9 once each. If a variant changes the digit set or house size, the target sum changes (for size n, it is n(n+1)/2).
What is the 159 rule?
“159 rule” is not a single universal standard like the 45 rule. Some publishers use 159 in the name of a variant with extra constraints tied to columns 1, 5, and 9; others use “159” informally in forum shorthand for small arithmetic tricks. Always read the puzzle’s rules before assuming what “159” refers to.
How do experts use the 45 rule?
Experts use it quietly and often: as a Killer Sudoku innie/outie shortcut, as a cross-house sum when two regions overlap, and as a verification layer alongside fish, wings, and chains. It rarely replaces those patterns—it narrows the search space so pattern recognition can latch.
Is the 45 rule related to magic squares?
Only superficially. A completed Sudoku row sums to 45 because it is a permutation of 1–9, not because the grid is a magic square.
Where should I go after mastering house sums?
Move to structured patterns: Advanced Sudoku Techniques: Mastering X-Wing and Swordfish in 2026, then deeper single-digit and chain work linked from our strategies hub.
Related reading
Practice the 45 rule in Sudoku Face Off
Practice the 45 rule in Sudoku Face Off with our advanced puzzles—difficulty-rated grids, candidate-friendly tooling, and hints that reinforce structure instead of guessing.
Download Now