Toolvito

Calculates on this device. File exports run online.

Latin Square Generator

Choose the size and press Make for random Latin squares: every symbol once in each row and each column. You can also make a Graeco-Latin pair, puzzles with exactly one answer, or check a square you type.

Enter your values

Random Latin squares from a seed, in any form or reduced.

Your values

More options

Empty: new squares. To make the same again, type the seed of an earlier result.

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose Make.

Print, pictures or a document

Task
Print the squares

A PDF with the squares at their real size; solutions start on a new sheet.

With 2, 4 or 6 the squares share a sheet at one scale; solutions start on a new sheet. Not with "A page the size of the square".

More options

Leave it empty for a name that fits the result.

The squares are made in your browser. When you press a button in the boxes below, the drawings (and for a document the result lines and tables) are sent to the Toolvito server to make the file. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

How to use it

  1. Choose Latin squares, the size and the form: any, with the first row in order, or reduced (first row and first column in order).
  2. Choose numbers, letters or your own symbols (such as colours or treatments of an experiment).
  3. Press Make. The seed is shown: type it again under More options to make the same squares.
  4. Print the squares, save them as pictures, or download a document in the boxes below.

Graeco-Latin squares

Two Latin squares are orthogonal when, laid over each other, every ordered pair of symbols appears exactly once. Such pairs exist for every order above 1 except 2 and 6; for order 6 none exists, as Tarry showed in 1901 by trying every case (Wikipedia, "Graeco-Latin square", read 2026-10-29). The page builds pairs for odd orders, for 4, 8 and 12, and finds one for order 10 by a search; every pair is checked before it is shown.

Puzzles and checking

  • A Latin square puzzle has blanks to fill so that each row and column holds every symbol once. The page keeps a blank only while the answer stays the only one: a search counts the ways to complete it and stops at 2.
  • Check a square tells you if a square is a Latin square and which form it has, or, with blanks, whether it has no, exactly one or more than one completion.

Good to know

The random squares are the first ones a search finds when it tries the symbols in an order shuffled by the seed: every Latin square can come out, but not all equally often. For an experiment design, check that this kind of randomness is what you need.

Related tools