What would you like to understand?

Popular destinationsCalculatorsCoursesPracticeFormulas

Unlock Premium Help

Explore every tutor and study workspace for seven days, with no daily AI cap during the trial.

Choose a billing period
Ask a parent to pay

Nothing is charged during the first seven days. Unless you cancel, the plan you selected begins when the trial ends and renews on its stated schedule. Manage cancellation from your plan page. Stripe handles the payment details.

Direct Variation Calculator

Find or apply the constant k in y = kx.

Set up the relationship

Direct Variation inputs

Enter only the values that define this relationship. The result is checked against the original setup.

Direct-variation resultEnter the known values

The method, result, and an independent check will appear here.

Method for this result

  1. Complete the inputs and calculate.

Constant-ratio check

  1. The check will use a different relationship or reverse operation where possible.

The relationship behind Direct Variation Calculator

y = k x k = y / x

Symbols and inputs for Direct Variation Calculator

Symbols and inputs for Direct Variation Calculator
SymbolQuantityMeaning
yThe dependent quantityWhat you are predicting, in its own unit, such as millimetres of stretch.
xThe independent quantityWhat you control, in its own unit, such as newtons of force.
kThe constant of variationThe fixed ratio y ÷ x. Its unit is y's unit per x's unit, here mm per N.
(0, 0)The originDirect variation must pass through it, because x = 0 forces y = 0.

Worked example for Direct Variation Calculator

  1. A spring stretches 45 mm when a 12 N weight hangs on it: x = 12 N, y = 45 mm
  2. Find k by dividing y by x: k = 45 ÷ 12
  3. Simplify: k = 3.75 mm per N
  4. Write the rule: y = 3.75x
  5. Predict the stretch under 20 N: y = 3.75 × 20 = 75 mm
  6. Go the other way: what force gives 60 mm?: 60 = 3.75x, so x = 60 ÷ 3.75 = 16 N
  7. Sanity check the doubling: at 24 N the stretch is 3.75 × 24 = 90 mm, exactly double the 45 mm at 12 N

A second case for Direct Variation Calculator

  1. A different case: a straight line that is not direct variation: a taxi charges 2.50 to start plus 1.80 per mile
  2. Write the rule: c = 1.80m + 2.50
  3. Cost of a 4-mile trip: 1.80 × 4 + 2.50 = 7.20 + 2.50 = 9.70
  4. Divide to test the ratio: 9.70 ÷ 4 = 2.425 per mile
  5. Cost of a 10-mile trip: 1.80 × 10 + 2.50 = 20.50, and 20.50 ÷ 10 = 2.05 per mile
  6. The ratio moved, so this is not direct variation: the 2.50 start-up fee is what breaks it
  7. Check the origin test: a 0-mile trip still costs 2.50, so the line misses (0, 0)

Divide y by x at three points and see which rules keep the same answer

Divide y by x at three points and see which rules keep the same answer
Ruley at x = 2y at x = 5y at x = 8y ÷ x at each pointDirect variation?
y = 3.75x7.518.75303.75, 3.75, 3.75yes
y = 0.5x12.540.5, 0.5, 0.5yes
y = −2x−4−10−16−2, −2, −2yes, k is allowed to be negative
y = 1.8x + 2.56.111.516.93.05, 2.30, 2.11no, there is a start-up amount
y = x²425642, 5, 8no, the ratio keeps growing
y = 12/x62.41.53, 0.48, 0.1875no, that is inverse variation

Mistakes to catch with Direct Variation Calculator

c = 1.80m + 2.50 is direct variation because the graph is a straight line

Every direct variation is a line, but not every line is a direct variation. This one crosses the vertical axis at 2.50 instead of 0.

Repair: Test the origin: put x = 0 in, and a genuine direct variation must give y = 0.

From x = 12 and y = 45, writing k = 12 ÷ 45 = 0.267

The ratio was taken upside down, which turns 3.75 mm per newton into 0.267 newtons per millimetre.

Repair: k = y ÷ x = 45 ÷ 12 = 3.75.

If x doubles from 12 to 24, y goes up by k, so 45 + 3.75 = 48.75

k multiplies, it does not get added on. Doubling x doubles y.

Repair: y = 3.75 × 24 = 90, which is twice 45.

Questions about Direct Variation Calculator

Does a direct variation have to pass through the origin?

Yes, and it is the fastest test there is. y = kx with x = 0 gives y = 0 no matter what k is, so any relationship with a fixed starting amount, like a delivery fee or a base salary, is disqualified straight away.

Can the constant of variation be negative or zero?

Negative is fine: y = −2x still has a constant ratio of −2, it just slopes downhill. Zero is not useful, because y = 0x makes y always 0 and x stops mattering entirely.

Is 'y varies directly as the square of x' still direct variation?

Yes, but the thing doing the varying is x², not x. You find k with k = y ÷ x². Dividing by plain x will give you a number that keeps changing, which is exactly what the table above shows for y = x².

How do I spot direct variation in a table of measurements?

Divide y by x on every row. Real measurements wobble a little, so look for a ratio that stays close rather than exactly equal. A ratio that drifts steadily in one direction is the sign of a start-up amount or a power hiding in the rule.

Understand the result from Direct Variation Calculator

Compare another tool, review the underlying idea, then solve a fresh problem without copying the example.

Calculators related to Direct Variation Calculator

See all calculators →

Algebra calculator

Explore this resource with editable values, visible working, and a result you can check.

Open free tool

Quadratic formula calculator

Explore this resource with editable values, visible working, and a result you can check.

Open free tool

Graphing calculator

Explore this resource with editable values, visible working, and a result you can check.

Open free tool

Understand algebra behind this calculator

A calculator can check the arithmetic; use the algebra subject guide to rebuild the method, algebra practice questions to test selection, and the math formula library to confirm conditions and notation.