Number line generator
Print number lines with whole numbers, negatives, decimals, or fractions; show or hide labels.
Preview
The interval determines tick positions. Check endpoint coverage and label spacing; a wider range does not force an extra endpoint tick.
How it works
Tick k is start + k × interval and is included only while it does not exceed the end. The generator allows 2–101 ticks per line.
Worked examples
Typical task
Start at 0, end at 2, and use interval 1/2. The five ticks are 0, 0.5, 1, 1.5, and 2; fraction labels can show halves instead.
A different case
Start at 0, end at 1, and use interval 0.3. Ticks are 0, 0.3, 0.6, and 0.9. The end value 1 is not labeled because no interval lands on it.
Instructions, limits, and common questions
Instructions
- Enter start, end, and positive interval using decimals or fractions.
- Choose label format, number of lines, and paper; inspect spacing and endpoint ticks.
- Print a test at actual size, especially if physical spacing matters.
Limits and assumptions
Enter decimals or fractions such as -1/2. The end must exceed the start, and the interval must be positive. Ticks start at the range start and stop at or before the end; the end is labeled only when an interval reaches it. Limits: 2–101 ticks and 1–6 lines; the minimum interval is 0.000000001. Repeated rounded labels require a larger interval. Values are rounded to nine decimals; decimal labels to six. Fraction labels use denominators up to 1,000 when representable, otherwise decimals. Crowded labels require a larger interval or hidden labels. Inputs are processed locally and are not saved or sent anywhere. Printer margins and browser fonts may affect the output.
Can I start with a negative fraction?
Yes, such as -1/2. End must exceed start and the interval must be positive.
Why is the last tick before the end?
Ticks advance by the interval from the start. They stop before exceeding the end rather than stretching the final step.
Why are labels rejected as crowded?
Too many labels or repeated rounded values make the sheet ambiguous. Increase the interval or hide labels instead.
