Skip to content
D DocNectar

Free Direct Variation Calculator

Solve for k, y, or x in a direct variation relationship y=kx, given the other two values.

100% Free No Signup Works on all devices

Built and fact-checked by the DocNectar team — see our editorial standards

Thanks for rating!

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.

  1. Enter solve for.
  2. Enter x (leave blank if solving for x).
  3. Enter y (leave blank if solving for y).
  4. Enter k (leave blank if solving for k).
  5. 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.

Frequently asked questions

k is the constant of variation (or proportionality constant) — it's the fixed ratio between y and x that stays the same no matter what value x takes.
In direct variation, y=kx, so y increases as x increases; in inverse variation, y=k/x, so y decreases as x increases — the two behave oppositely.
Yes — since y=kx has no separate constant term added, plugging in x=0 always gives y=0, meaning every direct variation line passes exactly through the point (0,0).
Check whether the ratio y/x is the same constant value for every pair of data points — if it is, the relationship is direct variation; if the ratio changes from pair to pair, it isn't.
Yes — a negative constant of variation means y decreases as x increases (and vice versa), while still maintaining a constant ratio between them.
Cost of a product at a fixed unit price versus quantity purchased, distance traveled versus time at constant speed, and circumference versus diameter of a circle are all classic direct variation examples.

Get new calculators and guides in your inbox

No spam — just new tools like Direct Variation Calculator and practical guides.

Favorites