Direct Variation Calculator

Enter a known point (x₁, y₁) and a new x- or y-value to find the constant of variation (k = y ÷ x) and predict the matching value using y = kx.

Quick Facts

Direct variation formula
y = kx
y is directly proportional to x through a constant k.
Constant of variation
k = y ÷ x
This ratio is the same for every point that satisfies the relationship.
Graph shape
Straight line through the origin
Unlike y = mx + b, direct variation always passes through (0, 0).

Your Results

Calculated
Constant of Variation (k)
-
k = y ÷ x
Direct Variation Equation
-
y = kx
Predicted Value
-
Using y = kx with your new input
Scale Factor
-
x₂ ÷ x₁ = y₂ ÷ y₁

Ready

Enter a known (x₁, y₁) pair and a new value, then press Calculate.

Formula and Method for Direct Variation

Direct variation describes a relationship where one variable is always a constant multiple of another. If y varies directly with x, then y = kx for some nonzero constant k, called the constant of variation (or constant of proportionality). This calculator finds k from a known pair of values (x₁, y₁), then uses it to predict a new y-value from an x-value, or a new x-value from a y-value, using that same equation.

How the calculation works

Enter a known x-value and its corresponding y-value. The calculator divides them to find the constant of variation: k = y₁ ÷ x₁. Once k is known, plug any new x into y = kx to get the matching y, or divide a known y by k to solve for x, since x = y ÷ k. Because k is fixed, the ratio y ÷ x is identical for every point that satisfies the direct variation — that is what makes the relationship "direct": as x grows, y grows in exact proportion (or shrinks in exact proportion if k is negative).

Common mistakes

  • Confusing direct variation with a general linear equation: y = mx + b only reduces to direct variation when b = 0; a nonzero y-intercept breaks the proportional relationship and the line no longer passes through the origin.
  • Dividing the wrong way: k = y ÷ x, not x ÷ y — swapping the two inverts the constant and gives incorrect predictions.
  • Using x₁ = 0 as the known point: since k = y₁ ÷ x₁, the known x-value can never be 0 — that makes k undefined (or gives no information if y₁ is also 0).
  • Assuming k must be positive: direct variation still holds when k is negative — y decreases as x increases, but the ratio y ÷ x stays constant.

Real-world applications

  • Unit pricing: total cost varies directly with quantity purchased (cost = price-per-item × quantity).
  • Currency conversion: one currency's value varies directly with another at a fixed exchange rate.
  • Physics: distance varies directly with time at constant speed (d = vt), and force varies directly with mass at constant acceleration (F = ma).
  • Recipe scaling: ingredient amounts vary directly with the number of servings.

Frequently Asked Questions

What is direct variation?
Direct variation describes two quantities x and y that are related by y = kx, where k is a nonzero constant called the constant of variation. As x increases, y increases (or decreases, if k is negative) in exact proportion, and the graph of y = kx is always a straight line through the origin.
How do you find the constant of variation?
Divide any known y-value by its corresponding x-value: k = y ÷ x. For example, if y = 12 when x = 4, then k = 12 ÷ 4 = 3, so the equation is y = 3x.
How is direct variation different from a general linear equation?
A general linear equation, y = mx + b, only represents direct variation when the y-intercept b is 0. If b is not 0, the line does not pass through the origin and the ratio y ÷ x is not constant, so it is not a direct variation.
How do you use the constant of variation to predict a new value?
Once you know k, multiply it by any new x-value to find the matching y (y = kx), or divide a known y-value by k to find the matching x (x = y ÷ k). Both calculations use the same constant because the ratio between x and y never changes in a direct variation.