Built and fact-checked by the DocNectar team — see our editorial standards
Key Features
Instant Calculation
Get accurate results in real time with our optimized algorithm.
Mobile Friendly
Fully responsive design. Works on all devices & screen sizes.
Privacy Focused
Your data stays on your device. We don't store any inputs.
100% Free
No hidden costs. This tool is completely free forever.
A direct variation relationship, written y=kx, describes two quantities that grow or shrink in exact lockstep proportion — double x and y doubles too; triple x and y triples too. It's one of the simplest and most intuitive algebraic relationships, and it shows up constantly in real-world proportional situations: the total cost of gas is a direct variation of gallons purchased (at a fixed price per gallon), distance traveled at a constant speed is a direct variation of time elapsed, and the circumference of a circle is a direct variation of its diameter (with π as the constant). The defining feature of direct variation is the constant k, called the constant of variation or proportionality constant — the fixed ratio y/x that never changes no matter what value x takes, and the reason the relationship always graphs as a straight line passing exactly through the origin (0,0), with no separate y-intercept term. This tool solves a direct variation equation y=kx for whichever of the three values — k, x, or y — is unknown, given the other two.
How it works
Given any two of the three values {x, y, k}, the tool finds the third directly from the equation y=kx by rearranging as needed: if x and y are known, k=y/x; if k and x are known, y=kx; if k and y are known, x=y/k. Each case is just a rearrangement of the same underlying relationship, since all three forms are algebraically equivalent.
- Enter solve for.
- Enter x (leave blank if solving for x).
- Enter y (leave blank if solving for y).
- Enter k (leave blank if solving for k).
- Click Calculate to see your results.
Examples
Finding the constant of variation
If y=12 when x=4, then k=12/4=3, so y=3x.
Finding y given k and x
If k=3 and x=7, then y=3×7=21.
Finding x given k and y
If k=5 and y=45, then x=45/5=9, since rearranging y=kx to solve for x gives x=y/k.
Who should use it
- Algebra coursework on direct variation and proportional relationships.
- Word problems involving proportional quantities (e.g. distance and time at constant speed).
- Verifying whether a data set represents a proportional relationship.
Industry applications
- Mathematics education
- Physics (constant-rate relationships)
Advantages
- Solves for any of the three unknowns (k, x, or y).
- Shows the formula substitution clearly.
- Applicable to a wide range of real-world proportional relationships.
Limitations
- Only handles the simple y=kx form, not variations with an added constant.
Common mistakes to avoid
- Confusing direct variation (y=kx) with a linear equation that has a non-zero y-intercept (y=kx+b) — direct variation always passes through the origin.
- Assuming any proportional-looking relationship is direct variation without checking that the y/x ratio is truly constant across all data points.
- Mixing up which variable to solve for when rearranging y=kx, especially confusing the roles of k and x when only y and one other value are known.
Best practices
- Double-check that a real-world relationship actually passes through (0,0) before modeling it as direct variation.
- Verify the constant of variation using at least two data points if possible, to confirm the relationship is genuinely direct variation and not just coincidentally close for one pair.
- Keep track of units when computing k, since the constant of variation carries the units of y divided by the units of x.
Tips
- A quick check for direct variation in a data table: if every y/x ratio is the same constant, the relationship is a direct variation.
- If a relationship has a nonzero value of y when x=0, it's not a pure direct variation — it needs an added constant term instead.