Direct Variation Calculator

Quick answer

The direct variation calculator works with y = kx: enter any two of y, x and the constant of proportionality k to get the third.

y
36
Equation y = kx with k =
9

Two quantities vary directly when doubling one doubles the other: pay and hours worked, distance and time at constant speed, cost and weight of fruit. The graph is a straight line through the origin with slope k.

How to use the Direct Variation Calculator

  1. Solve for
  2. Dependent variable y
  3. Independent variable x
  4. Constant of proportionality k

Results update as you type, and everything is calculated in your browser.

How it works

Choose which quantity you want and enter the other two. The constant k is the ratio y/x, which is the same for every pair of values that vary directly.

Inputs explained

Field What to enter
Solve for Choose one: y (dependent variable), x (independent variable), k (constant of proportionality)
Dependent variable y A number
Independent variable x A number
Constant of proportionality k A number

What each result means

  • y = [Constant of proportionality k]×[Independent variable x]
  • x = [Dependent variable y]÷[Constant of proportionality k]
  • k = [Dependent variable y]÷[Independent variable x]

Example values

How the main result changes when Dependent variable y changes and everything else stays at the example values above:

Dependent variable y y
18 36
27 36
36 36
45 36
54 36
72 36

Formula

y = k · x, k = y ÷ x

Worked example

Inputs: Solve for: y (dependent variable); Independent variable x: 4; Constant of proportionality k: 9.
Results: y = 36; Equation y = kx with k = = 9.

Key terms

Direct variation
y = kx for a constant k.
Constant of proportionality
The fixed ratio k = y/x.

Frequently asked questions

How do I know if two quantities vary directly?

Their ratio y/x is constant, and the graph is a straight line through the origin.

What is the constant of variation?

k = y/x, the amount y changes per unit of x.

Is y = 2x + 3 a direct variation?

No, it does not pass through the origin, so y/x is not constant.

What is the opposite of direct variation?

Inverse variation, y = k/x.

Sources

  1. OpenStax: College Algebra 2e
  2. OpenStax: Intermediate Algebra 2e

Cite this calculator

Speedy Calculator. (2026). Direct Variation Calculator. Speedy Calculator. https://speedycalculator.com/calculators/math/direct-variation/