The less than symbol (<) goes before the number it compares against, never after. For example, 5 < 8 means “5 is less than 8,” with the symbol pointing to the smaller number. This placement is not arbitrary—it follows the logic of the symbol’s shape and the conventions of mathematical notation used worldwide.
What the Less Than Symbol Actually Means
The less than sign (<) is a relational operator that compares two values. It reads left to right: the value on the left is smaller than the value on the right. The symbol itself is an angle that opens to the right, like a mouth eating the larger number. That visual cue is the key to remembering its placement—the “open” side always faces the bigger value, and the “pointed” side always points to the smaller one.
In practice, 3 < 7 is correct, while 3 7 < is not a valid comparison in standard notation. The symbol must sit between the two numbers, with the smaller number immediately before it and the larger number immediately after it. This order is consistent across all contexts: arithmetic, algebra, programming, and even spreadsheet formulas.
Why the Symbol Faces Right
The less than symbol evolved from the equal sign in the 16th century. Mathematician Robert Recorde introduced the equal sign in 1557, and later scholars created variations to show inequality. The less than sign first appeared in print in 1631 in Thomas Harriot’s Artis Analyticae Praxis. Harriot chose the shape we still use today, with the vertex pointing left and the opening facing right, to visually represent “smaller on the left, larger on the right.”
That orientation aligns with how we read text in most languages—left to right. The symbol tells you, at a glance, which side is smaller. If the opening faced left, it would be the greater than sign (>), which has the opposite meaning. The two symbols are mirror images, and the direction of the opening is the only difference between them.
How to Read and Write Comparisons Correctly
When you write a comparison, you always place the less than symbol between the two values, not before or after the entire expression. The structure is always:
- Left side: the smaller value
- Middle: the less than symbol
- Right side: the larger value
For example, 4 < 9 is correct. You would never write 4 9 < or < 4 9. The symbol must be flanked by the two numbers it compares. This rule applies to variables too: x < y means x is less than y, and y < x means y is less than x. The placement of the symbol relative to the numbers is fixed; only the numbers themselves can swap sides.
In programming, the same rule holds. In languages like Python, JavaScript, and C++, you write if (a < b) to check if a is less than b. The operator always sits between the operands. There is no valid syntax where the operator comes after the numbers.
Common Mistakes and How to Avoid Them
One of the most frequent errors is confusing the less than and greater than signs. A simple trick: remember that the symbol “points” to the smaller number. If you see <, the pointed end (the vertex) is on the left, so the left number is smaller. If you see >, the pointed end is on the right, so the right number is smaller.
Another mistake is writing the symbol after the numbers, like 5 3 <. This is not standard and will be confusing to any reader or computer. Always place the operator between the two values. In some informal contexts, people might write “5 is less than 3” as “5 < 3” incorrectly, but that is a logical error, not a placement error. The symbol is correct; the numbers are swapped.
In programming, a common pitfall is using a single equals sign (=) instead of the less than operator. In many languages, = is assignment, not comparison. For example, in Python, if a = b is a syntax error, while if a < b works as intended. Always double-check that you are using the correct operator for the operation you want.
Less Than vs. Less Than or Equal To
The less than symbol (<) means strictly less than—the left value must be smaller, not equal. The less than or equal to symbol (≤) includes equality. For example, 5 < 5 is false, but 5 ≤ 5 is true. The placement of both symbols is identical: between the two values, with the smaller (or equal) value on the left.
In programming, the less than or equal to operator is often written as <=. For instance, in JavaScript, if (score <= 100) checks if score is 100 or less. The symbol still goes between the operands, and the order matters. Writing 100 <= score would mean the opposite condition.
Using the Less Than Symbol in Different Contexts
The less than symbol appears in many fields beyond basic arithmetic:
- Mathematics: inequalities, intervals (e.g.,
2 < x < 5), and set notation. - Programming: conditional statements, loops, and comparisons.
- HTML and markup: the less than symbol starts tags, like
<p>. In HTML, you must use the entity<to display a literal less than sign. - Databases: SQL queries use
<to filter records, e.g.,WHERE price < 100.
In every case, the symbol is placed between the two values being compared. There is no exception where the symbol comes after the number. Even in HTML, where the less than sign is used to open tags, it still appears before the tag name, not after a number.
Frequently Asked Questions
Q: Is the less than symbol always before the number?
Yes, the less than symbol always appears between the two values being compared, with the smaller value on its left. It never comes after a number in a valid comparison.
Q: How do I remember which symbol is less than?
Think of the symbol as an alligator’s mouth that always wants to eat the bigger number. The open side faces the larger number, and the pointed side faces the smaller number. So < has the point on the left, meaning the left number is less.
Q: Can I write “5 < 3” if I mean 5 is less than 3?
No, that is incorrect. 5 < 3 reads “5 is less than 3,” which is false. To express that 5 is less than 3, you would write 5 > 3 or 3 < 5.
Q: In programming, does the less than symbol go before or after the variable?
It goes between the two operands. For example, if (x < y) is correct. You cannot write if (x y <) or if (< x y) in most languages.
Q: What does “<” mean in HTML?
In HTML, the less than symbol is used to start a tag, like <p>. To display a literal less than sign on a webpage, you must use the HTML entity <.
Final Thoughts on Symbol Placement
The less than symbol is always placed between two values, with the smaller value on the left and the larger value on the right. This rule is universal across mathematics, programming, and markup languages. Once you understand that the symbol’s point indicates the smaller number, you’ll never confuse it with the greater than sign again. Remember: the symbol comes before the number it compares, but only because it sits between the two numbers in the comparison.