Lights Out Puzzle Calculator

Create custom Lights Out boards, test puzzle rules, receive smart hints, find efficient solutions, track progress, and export results from one responsive tool instantly.

Puzzle result

Create or load a board to begin.

The solver will report status, moves, method, and timing.

No solution has been calculated.

Puzzle setup

58 pixels
Use binary rows, spaces, or comma-separated values.
The center represents the pressed cell.

Interactive board

Click a light to apply the selected toggle rule.

Moves0
Time00:00
Lights on0
Hints0
Undos0
StateReady

Display and accessibility

Statistics

Completed0
Best moves
Average moves
Fastest time
Winning streak0

Formula used

Each light uses binary values. Pressing a cell adds a toggle vector. Addition is performed modulo two.

The solver builds the equation A × x = b. Gaussian elimination finds valid press vectors. Nullspace search checks shorter equivalent solutions.

A × x = b (mod 2)
final board = initial board + A × x = 0
number of solutions = 2^(nullity of A)

How to use this calculator

Select rows, columns, rules, and a source. Build the puzzle and click lights. Use Solve whenever guidance becomes necessary.

Hints highlight the next recommended press. Auto-solve plays every calculated move. Export buttons save the displayed results.

  1. Choose a board size and puzzle source.
  2. Select a toggle rule and edge behavior.
  3. Build the board, then play or edit it.
  4. Press Solve to calculate a valid solution.
  5. Use hints, steps, exports, or auto-solve.

Example data

Grid sizeInitial patternRuleExpected status
3 × 3CrossStandard crossSolvable
4 × 4CheckerboardStandard crossSolver determines status
5 × 5Random solvableStandard crossSolvable
6 × 6BorderWrap-around crossSolver determines status

Understanding Lights Out

What the puzzle does

Lights Out uses a grid of binary lights. A press changes nearby cells. The goal turns every light off.

Why binary arithmetic works

Every cell has only two possible states. Two toggles cancel each other. This matches arithmetic performed modulo two.

Solvable and unsolvable boards

Some rules cannot reach every possible board. The solver checks equation consistency. Inconsistent equations identify an unsolvable state.

Manual solving tips

Try chasing lights from top downward. Avoid changing completed rows unnecessarily. Compare your moves with calculated guidance.

Worked example

A single center light creates the target vector. The solver finds presses reproducing that vector. Applying them clears the complete board.

Frequently asked questions

What is the standard Lights Out rule?

A press toggles itself and four orthogonal neighbors. Edge cells affect fewer positions. Wrap-around can change that behavior.

Can every puzzle be solved?

No, solvability depends on dimensions and rules. The calculator tests equation consistency. Unsolvable boards receive a clear warning.

How is a minimum solution found?

The solver finds one valid vector first. It then explores nullspace combinations. Large searches use a practical safety limit.

What does wrap-around mean?

Edges connect to the opposite grid side. Corner presses may affect distant corners. This creates a toroidal puzzle board.

Can I create custom rules?

Yes, select the custom rule option. Choose affected offsets in the pattern editor. The solver uses your selected pattern.

How does the daily challenge work?

The current date creates a stable seed. Everyone receives the same dated pattern locally. Tomorrow generates a different challenge.

Are my statistics stored online?

No account is required for statistics. Values remain in local browser storage. Clearing storage removes saved performance data.

Why can minimum search be limited?

Some boards have many nullspace combinations. Exhaustive checking may become extremely large. The calculator then returns a valid solution.

Can I import a board?

Yes, use binary matrix input. Enter equal-length zero and one rows. Spaces and commas are also accepted.

Related Calculators

Average Calculator StatisticsGeometric Mean CalculatorInter Quartile Range CalculatorLower Quartile CalculatorMaximum CalculatorMean Calculator StatisticsMedian Calculator StatisticsMidhinge Calculator StatisticsMid Range Calculator StatisticsMinimum Calculator Statistics

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.