About the Number Line Generator
This number line generator draws a clean, printable number line for any range you choose. Use whole numbers from −10 to 10 for adding and subtracting integers, decimal steps of 0.1 for place value, or fractions in halves, thirds, quarters or eighths to compare and order fractions. You can also mark specific points — such as −3, 2.5 or 3/4 — as dots on the line.
Teachers can print the line straight into a worksheet or download it as an SVG that stays sharp at any size; students can use it to visualise jumps when adding, subtracting or counting on. The tick list and text preview make it easy to copy the labels into a document as well.
Fractions can be shown simplified (2/4 becomes 1/2) and as mixed numbers (5/4 becomes 1 1/4), or left as improper fractions with a common denominator, which is often clearer when comparing fractions. Lines are capped at 201 ticks so they stay readable.
How to use the number line generator
- 1Choose integers, decimals or fractions.
- 2Enter the start and end of the line.
- 3Set the interval, or the denominator for fractions.
- 4Optionally list points to mark as dots.
- 5Print the line or download it as an SVG for your worksheet.
Formula and method
The line starts at the start value and adds the interval repeatedly until it would pass the end value, so the number of ticks is the whole number of intervals that fit plus one. Values are computed as start + i × interval and rounded to the interval’s decimal places, which avoids floating-point labels such as 0.30000000000000004.
For fractions, every multiple of 1/d between the start and end gets a tick. Labels are reduced by the greatest common divisor when simplifying, and improper fractions are split into a whole number and a proper fraction when mixed numbers are on. Marked points are placed in proportion to their distance from the start.
- d
- Denominator — number of equal parts each whole is split into
- k
- Numerator of each fraction tick
- i
- Tick index from 0
Worked examples
Integers from −10 to 10
From −10 to 10 in steps of 1 there are 20 intervals, so 21 ticks. The points −3 and 4 are both inside the range and are drawn as dots.
Quarters from 0 to 2 as mixed numbers
Each whole is split into 4 parts, giving 2 × 4 + 1 = 9 ticks. 2/4 simplifies to 1/2, and 5/4, 6/4 and 7/4 become 1 1/4, 1 1/2 and 1 3/4.
Tenths from 0 to 1
Ten intervals of 0.1 make 11 ticks, each labelled to one decimal place. The point 0.35 sits halfway between 0.3 and 0.4.
Thirds as improper fractions
Thirds up to 1.5 stop at 4/3, because 5/3 ≈ 1.67 is past the end. With simplifying off, the whole number 1 is shown as 3/3. The point 5 is outside the range, so nothing is marked.
Frequently asked questions
How do you make a number line?+
Draw a straight line, choose a start and end, and place equally spaced ticks at a constant interval. Label each tick, and add arrows at both ends to show the numbers continue. This generator does the spacing and labelling for you.
How do you put fractions on a number line?+
Split each whole (0 to 1, 1 to 2…) into as many equal parts as the denominator. For quarters, make four equal jumps between each pair of whole numbers; 3/4 is the third tick after 0 and 5/4 is the first tick after 1.
How do you use a number line for negative numbers?+
Numbers to the left of zero are negative and get smaller as you move left. Adding means jumping right and subtracting means jumping left, so −3 + 5 starts at −3 and jumps 5 to the right, landing on 2.
What interval should I use?+
Use 1 for counting and integer operations, 2, 5 or 10 for skip counting and larger ranges, 0.1 for tenths and fractions with the denominator you are studying. Keep it to about 10–25 ticks so labels stay readable when printed.
Can I print the number line?+
Yes. Use the Print button above the drawing to print just the number line, or download it as an SVG image, which you can paste into Word, Google Docs or a slide and resize without losing sharpness.
Should fractions be simplified on a number line?+
It depends on the lesson. Simplified labels (1/2 instead of 2/4) are best for reading values, while unsimplified labels with one common denominator make it easier to compare and add fractions. Toggle simplifying to switch between them.