Search the complete library

What do you want to learn or calculate?

Quick linksAll calculatorsMath subjectsPractice questionsFormula library

Unlock Unlimited Help

Try unlimited chats, explanations, practice, flashcards, and more free for 7 days.

7 days free · cancel anytime

MathGPT Unlimited

  • Chats and explanations
  • Personalized practice exams
  • Custom study guides
  • Flashcard sets
  • Interactive graphs
  • Cancel anytime
Choose a billing period
Ask a parent to pay

No charge for 7 days. After the trial, your selected plan renews automatically until cancelled. Cancel anytime from your plan page; payments are processed securely by Stripe.

Find the constant and equation of direct variation

Use the free direct variation calculator to model the algebraic relationship, calculate the requested quantity, and verify it in the original expression. Choose a focused operation below to calculate, inspect the method, and connect the result to a visual model.

The visual updates with your calculation.

Result—Choose a mode, enter the known values, and calculate.
Show your work Step-by-step method
  1. The calculation method and verification will appear here.
Ask MathGPT for a full symbolic explanation →
Algebra

Direct Variation Calculator explained

The short version

  • Direct variation means y is always the same multiple of x, so y ÷ x never changes.
  • The graph is a straight line through the origin. Miss the origin and it is not direct variation, however straight it looks.
  • One matching pair of x and y is enough to find k, and after that every other pair follows.

The formula this page uses

y = k x k = y / x

What each part means

SymbolWhat it means
y — The dependent quantityWhat you are predicting, in its own unit, such as millimetres of stretch.
x — The independent quantityWhat you control, in its own unit, such as newtons of force.
k — The 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.

Show your work: a full example

  1. A spring stretches 45 mm when a 12 N weight hangs on itx = 12 N, y = 45 mm
  2. Find k by dividing y by xk = 45 ÷ 12
  3. Simplifyk = 3.75 mm per N
  4. Write the ruley = 3.75x
  5. Predict the stretch under 20 Ny = 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 doublingat 24 N the stretch is 3.75 × 24 = 90 mm, exactly double the 45 mm at 12 N

A second, different case

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

x = 12 N, y = 45 mm

A spring stretches 45 mm when a 12 N weight hangs on it

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

Three mistakes to check for

What students writeWhy it's wrongDo this instead
c = 1.80m + 2.50 is direct variation because the graph is a straight lineEvery 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.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.267The ratio was taken upside down, which turns 3.75 mm per newton into 0.267 newtons per millimetre.k = y ÷ x = 45 ÷ 12 = 3.75.
If x doubles from 12 to 24, y goes up by k, so 45 + 3.75 = 48.75k multiplies, it does not get added on. Doubling x doubles y.y = 3.75 × 24 = 90, which is twice 45.

Questions about the 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.

Where to go next

Calculate, interpret, verify.

This workspace keeps the formula and the meaning together. Decimal results are rounded for display; retain full precision when you continue a calculation.

01

Enter known values

Match each input to the quantities in the problem and keep units consistent.

02

Use the relationship

The result panel identifies the formula or algorithm and shows the main substitutions.

03

Read the visual

Use the diagram, plot, or data display to check scale, direction, and plausibility.

04

Practice unaided

Move to targeted questions once you can explain why the method applies.

Continue from this result

Turn one calculation into understanding.

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

Recommended next tools

Calculators that work well with this one

See all calculators →

Algebra calculator

Evaluate algebraic relationships and inspect the working.

Open free tool

Quadratic formula calculator

Find roots and connect the discriminant to the graph.

Open free tool

Graphing calculator

Compare equations, roots, intercepts, and inequalities visually.

Open free tool
Learn the mathematics

Understand algebra behind this calculator

A calculator confirms an answer. Working the method yourself is what makes the next problem faster.