🧮
🧮 Math & statistics

Direct Variation Calculator (y = kx: constant of variation & missing value)

Results update as you type.

Your numbers

Understanding the direct variation calculator — concept and principle

This calculator works with direct variation y = k·xⁿ. From one known pair it finds the constant of variation k, writes the equation, and gives the missing y for a new x or the missing x for a new y. Use it for algebra word problems, scaling recipes, or physics relations such as distance at constant speed.

y varies directly with xy varies directly with x(4, 10)(7, 17.5)y = 2.5xk10 ÷ 4 = 2.5Change factor7 ÷ 4 = 1.75y at x = 717.5
Multiply x by 1.75 and y is multiplied by 1.75 too.

How it is calculated

k = y₁ ÷ x₁ⁿ

New y = k × xⁿ; new x = (y ÷ k)^(1/n)

Factor of change in y = new y ÷ y₁

The principle

In a direct variation, y is always the same multiple of xⁿ. One known pair is enough to find that multiple, and then every other pair follows. With n = 1, doubling x doubles y; with n = 2, doubling x multiplies y by 4. Examples are distance at a constant speed (n = 1), the area of a circle (n = 2, k = π) and the distance fallen from rest (n = 2, k ≈ 4.9 m/s²).

Worked example

Default inputs: x₁ = 4, y₁ = 10, n = 1, find y for x = 7.

  1. Constant of variation k = 10 ÷ 4 = 2.5.
  2. Equation: y = 2.5x; known pair (4, 10).
  3. New y = 2.5 × 7 = 17.5 (what was found: y for the new x).
  4. Factor of change in y = 17.5 ÷ 10 = 1.75, the same as 7 ÷ 4.
  5. Check: y ÷ x = 17.5 ÷ 7 = 2.5 = k.
How Answer changes with Known x (x₁)How Answer changes with Known x0204060801234568Example: 17.5Known x (x₁)
Each point is the calculator re-run with only “Known x (x₁)” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
Known x (x₁)Answer
170
235
323.33333333
417.5
514
611.66666667
88.75

How to read the result

k tells you how much y there is per unit of xⁿ, for example 2.5 euros per kilogram. With n = 1, the factor of change in y equals the factor of change in x; with n = 2 it is the square of that factor. If your data do not keep y ÷ xⁿ constant, the relationship is not a direct variation of that power.

Common mistakes

Keep in mind: Real relationships often hold only over a limited range. Check that the variation model fits your situation before extrapolating.

Frequently asked questions

What is direct variation?

A relationship y = kxⁿ where y is always the same multiple of xⁿ.

How do I find the constant of variation?

Divide y by xⁿ using any known pair.

What is the difference between direct and inverse variation?

In direct variation y grows with x; in inverse variation y = k ÷ x, so y shrinks as x grows.

Sources: OpenStax, College Algebra 2e (2021), §5.8 Modeling Using Variation

Checked 9 Nov 2026. OpenStax, College Algebra 2e (2021), §5.8 Modeling Using Variation (direct variation y = kxⁿ; k is the constant of variation).

🧮 All math & statistics tools →🌍 Calculators by country →