Skip to content
FiftyCalc Free calculators for all 50 states

Direct Variation Calculator

Test cases replayed : 2 of 2 match · Methodology · No outside source listed

Enter one known pair (x, y) and a new x to get the constant of variation and the matching y.

Result

Sample figures

New y = k × new x (direct variation)—

Constant of variation k = y ÷ x —

  • New y if y varied inversely instead, x₁y₁ ÷ new x—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Direct Variation Calculator

Known x (not 0): enter a number. Prefilled example: 4.

Known y: enter a number. Prefilled example: 10.

New x: enter a number. Prefilled example: 7.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Known x (not 0): enter a number.
  2. Known y: enter a number.
  3. New x: enter a number.
  4. Read the result: New y = k × new x (direct variation); the panel also shows Constant of variation k = y ÷ x and New y if y varied inversely instead, x₁y₁ ÷ new x.

How this calculator works

Direct variation: y = kx, where k is the constant of variation (the slope of a line through the origin). From one pair, k = y₁ ÷ x₁, and for a new x, y = k·x, so y₂ ÷ x₂ = y₁ ÷ x₁.

Inverse variation, shown for comparison, is y = k ÷ x with k = x₁y₁, so y₂ = x₁y₁ ÷ x₂.

The formula

  1. Y2=y1x1×x2+0
Symbols used in the formula
SymbolMeaning
x1Known x (not 0)
y1Known y
x2New x
Y2New y = k × new x (direct variation)

Worked example

Known x (not 0)4
Known y10
New x7
Constant of variation k = y ÷ x2.5
New y if y varied inversely instead, x₁y₁ ÷ new x5.7143
  1. Y2=104×7+0=17.5

New y = k × new x (direct variation) 17.5

Each step uses the unrounded value of the step before it; figures on this page are rounded for display.

Frequently asked questions

If y varies directly with x and y = 10 when x = 4, what is y when x = 7?

k = 10 ÷ 4 = 2.5, so y = 2.5 × 7 = 17.5.

Can k be negative?

Yes. If y = −12 when x = 3, then k = −4 and y = 8 when x = −2.

Related calculators