Direct Variation Calculator
A direct variation calculator finds the constant of proportionality and any missing value in relationships where one quantity is always a constant multiple of another — including the plain case (y = kx), power variation (y = kxⁿ), joint variation (z = kxy), and quick checks on whether a real data table is actually a direct variation at all.
Background
Direct variation is the simplest, most useful relationship in algebra: two quantities that always grow (or shrink) together in exact proportion. If y varies directly as x, then y = kx for some fixed constant k — double x and y doubles, triple x and y triples, and the graph is a perfectly straight line through the origin. This calculator covers the full family: the basic linear case, power variation where y depends on a power of x (like area on side² or volume on side³), joint variation where one quantity depends on two others at once, and a table-checking tool that tells you whether real data actually behaves this way.
How to use this calculator
- Choose Basic Variation for the plain y = kx relationship — solve for k, y, x, or predict a new value from a known point.
- Choose Power Variation when y depends on a power of x (y = kxⁿ), like area scaling with the square of a length or volume with the cube.
- Choose Joint Variation when one quantity depends on two others multiplied together (z = kxy), like interest depending on both principal and time.
- Choose Check a Data Table to paste in real (x, y) pairs and find out whether they actually represent a direct variation, what k is, and to predict new values.
- Click Calculate to see the visual plus a full step-by-step explanation and a callout on what the result actually means.
How direct variation works
Direct variation means y = kx: as x increases, y increases proportionally, and the ratio y/x is always the same constant k, no matter which pair of values you pick.
The graph of a direct variation always passes through the origin (0, 0) — that single feature is what separates it from a general linear equation y = kx + b, which can start anywhere.
Power variation, y = kxⁿ, extends the idea to nonlinear proportional relationships — area scales with the square of a length, volume with the cube — still "direct" because increasing x always increases y, just not at a constant rate.
Joint variation, z = kxy, means z depends proportionally on two variables at once: doubling either x or y alone doubles z, but doubling both quadruples it.
The constant of variation k only needs to be found once, from any single known pair — after that, the same k predicts every other pair. That's the entire power of direct variation for forecasting.
To check whether real-world data is truly a direct variation, compute y/x for every pair: if it comes out the same number every time (allowing for small rounding), the data is a direct variation and that number is k.
Formulas & Equations Used
Basic direct variation: y = kx k = y / x
Predicting a new value: y₂ = (y₁ / x₁) × x₂
Power variation: y = kxⁿ k = y / xⁿ
Joint variation: z = kxy k = z / (xy)
Checking a data table: k = yᵢ / xᵢ for every row — consistent if every ratio matches
Example Problems & Step-by-Step Solutions
Example 1 — Finding the constant, k
A rideshare fare varies directly with distance traveled: a 6-mile trip costs \$18.
Step: k = y / x = 18 / 6.
Result: k = \(3 per mile — every additional mile adds exactly \)3 to the fare.
Example 2 — Predicting from a known point
Hubble's Law: a galaxy 100 megaparsecs away recedes at 7,000 km/s. How fast does a galaxy 300 megaparsecs away recede?
Step: k = 7,000 / 100 = 70. Then y₂ = 70 × 300.
Result: about 21,000 km/s — three times the distance, three times the speed.
Example 3 — Power variation
Kinetic energy varies directly with the square of speed: an object moving at 10 m/s has 500 J of kinetic energy.
Step: k = y / x² = 500 / 10² = 500 / 100.
Result: k = 5. Because the power is 2, doubling the speed to 20 m/s would quadruple the energy to 2,000 J, not just double it.
Example 4 — Joint variation
Simple interest varies jointly with principal and time: a \$1,000 principal held for 2 years earns \$60 in interest.
Step: k = z / (xy) = 60 / (1,000 × 2).
Result: k = 0.03 (a 3% annual rate) — the same rate applied to any principal and time.
Example 5 — Confirming a data table
A receipt shows: 3 items for \$7.50, 5 items for \$12.50, 8 items for \$20.00.
Step: Check y/x for each row: 7.50/3, 12.50/5, 20.00/8.
Result: Every ratio equals \(2.50 — this is a genuine direct variation, and \)2.50 is the price per item.
Example 6 — Spotting a broken pattern
A table shows (2, 6), (4, 12), (6, 19), (8, 24) — meant to represent a constant \$3-per-unit rate.
Step: Ratios are 3, 3, 3.17, 3 — three rows agree, one doesn't.
Result: The (6, 19) row breaks the pattern (it should be 18). The data is not a clean direct variation as recorded — that row likely has a typo or measurement error.
Frequently Asked Questions
What's the difference between direct variation and a general linear equation?
Direct variation, y = kx, is a special linear relationship that must pass through the origin. A general linear equation, y = kx + b, can have any y-intercept b. If b isn't zero, it's not a direct variation, even though it's still a straight line.
Can the constant of variation, k, be negative?
Yes. A negative k means y decreases as x increases — the two quantities still move in exact lockstep, just in opposite directions. It's still called direct variation because the ratio y/x is constant, even though that constant is negative.
What does it mean if y/x isn't the same for every row in a data table?
It means the data isn't a pure direct variation — either the relationship isn't proportional at all, or there's measurement error in one or more rows. A single outlier row is often the more likely explanation than the whole relationship being wrong.
How is power variation still "direct" if the graph curves?
"Direct" refers to the direction of the relationship, not the shape of the graph: increasing x always increases y (for positive k and n). The graph curves because the rate of increase itself grows with x, unlike the constant rate of plain y = kx.
How is joint variation different from combined variation?
Joint variation (z = kxy) is a pure product of variables that all increase z together. Combined variation mixes direct and inverse parts in the same formula (like z = kx/y), so increasing one variable can decrease z. This calculator covers the pure joint case.
What are some real-world examples of direct variation?
Pay scaling with hours worked, distance traveled at constant speed scaling with time, currency conversion at a fixed exchange rate, and (per Hubble's Law) a galaxy's recession speed scaling with its distance from us are all direct variations.