Generate a multiplication table

Build a square times-table grid for positive integers from 1 through 20.

freeworks offlinenothing uploaded
ToolMultiplication Table Generator
Input
Output

How it works

The top row and first column enumerate 1 through the selected limit, and each interior cell multiplies its row header by its column header. Column width follows the digit count of limit² so one- and multi-digit products remain aligned.

Formula
cell(row, column) = row × column
  • The selected limit is required and capped at 20, producing at most 400 product cells.
  • The range starts at 1 to keep the conventional positive-integer table without an all-zero row and column.

Worked example

Up to 5 times 5
Input
											5
										
Output
												Table:      1  2  3  4  5
  1  1  2  3  4  5
  2  2  4  6  8 10
  3  3  6  9 12 15
  4  4  8 12 16 20
  5  5 10 15 20 25
Limit: 5
Cell count: 25
											

When to use this

Primary arithmetic practice reads one row at a time, factor lookup scans the square grid, and classroom charts highlight commutative mirror pairs.

Edge cases

  • A limit of 20 creates 400 products plus headers, while 21 is rejected by the visible-grid ceiling.
  • Zero, negative factors, decimals, and custom start values are outside the fixed 1-to-limit table.
  • Products intentionally mirror across the diagonal because 3×4 and 4×3 are equal; those are commutative pairs, not duplicate rows.