A constant in an equation is a fixed number whose value never changes, no matter what happens to the other parts of the equation. In the equation y = 3x + 5, the number 5 is a constant. It stays 5 whether x equals 1, 100, or a million. This is the opposite of a variable, which is a letter (like x or y) standing in for a number that can change.
Constants vs. Variables vs. Coefficients
These three terms come up together constantly in algebra, and they’re easy to mix up. Take the expression 4x + 7. It has all three:
- Variable: x, the letter representing an unknown or changing quantity.
- Coefficient: 4, the number multiplied by the variable. It tells you how much x is being scaled.
- Constant: 7, a standalone number with no variable attached.
The key distinction is that a coefficient always sits next to a variable, while a constant stands alone. In 3x + 7, the 3 is a coefficient and the 7 is a constant. A coefficient technically multiplies x by a fixed amount, so it’s “constant” in the sense that it doesn’t change either, but in math terminology it’s not called a constant because it’s attached to a variable term.
One detail that trips people up: the sign belongs to the constant. In the expression a − 3b + 9, the constant is positive 9. But in a − 1, the constant is −1, not 1, because subtraction is the same as adding a negative.
What Constants Do in Linear Equations
In the slope-intercept form y = mx + b, the constant b controls where the line crosses the y-axis. That crossing point is called the y-intercept, and you find it by setting x to 0. When x is 0, the equation simplifies to y = b, so the line passes through the point (0, b).
Changing b slides the entire line up or down without affecting its steepness. If you have y = 2x + 3 and change it to y = 2x + 8, you get the same slope but the line shifts up by 5 units. The constant acts like a starting position for the equation’s output.
Constants in Polynomials
In a polynomial like f(x) = 2x³ + 5x² − x + 4, the constant term is 4. Mathematically, this term has a degree of zero because it has no variable attached. You can think of it as 4 times x raised to the zero power (since anything raised to the zero power equals 1). A polynomial that is nothing but a constant, like f(x) = 7, is called a constant polynomial. Its degree is 0, and it gives the same output regardless of what x you plug in.
The Constant of Integration in Calculus
If you’ve taken or are taking calculus, you’ll run into the “constant of integration,” usually written as + C at the end of an indefinite integral. It exists because multiple functions can share the same derivative. For example, x², x² + 3, and x² − 10 all have the derivative 2x. When you reverse the process and integrate 2x, you get x² plus some unknown constant. Writing + C captures every possible version at once.
This isn’t just bookkeeping. Two functions with the same derivative can differ by no more than a constant, a principle that comes directly from the Mean Value Theorem. Forgetting the + C can lead to answers that look different but are actually separated by a hidden constant. For instance, ½ ln|x| and ½ ln|2x| have the same derivative (1/2x), and the difference between them is just ½ ln(2), a constant.
Constants in Science and Physics
Some of the most famous constants aren’t variables anyone chose to fix. They’re measured properties of the universe that show up in scientific equations. The speed of light, for example, is exactly 299,792,458 meters per second. It appears in Einstein’s equation E = mc² as the letter c, and its value is the same everywhere in the universe.
Other well-known physical constants include the gravitational constant G (approximately 6.674 × 10⁻¹¹ m³ kg⁻¹ s⁻²), which governs the strength of gravity between objects, and the Boltzmann constant k (1.381 × 10⁻²³ joules per kelvin), which links temperature to energy at the molecular level. The Planck constant h connects the energy of a photon to its frequency, and Avogadro’s number (6.022 × 10²³) tells you how many atoms or molecules are in a standard chemical amount of a substance. These values are fixed by nature, not chosen by the person writing the equation.
Arbitrary Constants in General Solutions
Not every constant in an equation has a known value from the start. In differential equations, the general solution often includes an “arbitrary constant,” a placeholder that gets pinned down only when you know a specific condition. For example, the general solution y = n(n − 1) + c contains the arbitrary constant c. If you’re told that y equals 5 when n equals 0, you can solve for c and get a particular solution with no unknowns left.
This is different from a variable. The constant c represents a single fixed number; you just don’t know which one yet until extra information narrows it down. Once determined, it stays the same throughout the equation, which is exactly what makes it a constant rather than a variable.

