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
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.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Known x (not 0): enter a number.
- Known y: enter a number.
- New x: enter a number.
- 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
| Symbol | Meaning |
|---|---|
| Known x (not 0) | |
| Known y | |
| New x | |
| New y = k × new x (direct variation) |
Worked example
| Known x (not 0) | 4 |
|---|---|
| Known y | 10 |
| New x | 7 |
| Constant of variation k = y ÷ x | 2.5 |
|---|---|
| New y if y varied inversely instead, x₁y₁ ÷ new x | 5.7143 |
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.