Direct Variation

Direct variation describes how one quantity changes proportionally with another, letting you find unknown values when two variables stay linked by a constant ratio.

y=kxy = kx

Solve a problem with Direct Variation

Type the problem. The solver will use Direct Variation where Direct Variation is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Direct Variation takes
kk
xx
yy
Direct Variation
SymbolMeaning
kkk is the constant of proportionality, also called the constant of variation; it describes the fixed numerical relationship between how much yy changes when xx changes by one unit. If k=0k = 0 the relationship degenerates to just y=0y = 0 regardless of xx.
xxx is the independent variable—the input or quantity you can choose or control; it represents the horizontal axis on a graph and can take any real number value. When x=0x = 0, we automatically get y=0y = 0 as well, always.
yyy is the dependent variable—the output that changes based on xx; it represents the vertical axis on a graph and is calculated by multiplying xx by the constant kk.

When to use it

Use direct variation when two quantities are proportional—one stays a fixed multiple of the other.

Level

Usually taught in: Algebra I

Worked examples

1. Find y given k and x

Problem

Find yy when x=4x = 4 and k=3k = 3.
  1. y=kxy = kx

    Start with the direct variation formula.

  2. y=34y = 3 \cdot 4

    Substitute the given values k=3k = 3 and x=4x = 4.

  3. y=12y = 12

    Multiply to get the answer.

Answer: y=12y = 12

Direct variation lets you substitute known values straight into the formula and multiply to find the output.

2. Find k from given values, then find a new y

Problem

If y=6y = -6 when x=4x = 4, find the constant of proportionality kk. Then use kk to find yy when x=3x = -3.
  1. y=kxy = kx

    Start with the direct variation formula.

  2. 6=k4-6 = k \cdot 4

    Substitute the known values y=6y = -6 and x=4x = 4 to find kk.

  3. k=64=32k = -\frac{6}{4} = -\frac{3}{2}

    Divide both sides by 4 and simplify the fraction by dividing numerator and denominator by 2.

  4. y=32(3)y = -\frac{3}{2} \cdot (-3)

    Now substitute the new value x=3x = -3 and the constant k=32k = -\frac{3}{2} into the formula.

  5. y=92y = \frac{9}{2}

    Multiply: negative times negative equals positive, and 323=92\frac{3}{2} \cdot 3 = \frac{9}{2}.

Answer: k=32 and y=92k = -\tfrac{3}{2} \text{ and } y = \tfrac{9}{2}

When you don't know kk, substitute the known pair of values to solve for kk first, then use that kk to find new outputs for different inputs.

3. Square garden perimeter and side length

Problem

A square garden's perimeter is directly proportional to its side length. When the side length is 10 meters, the perimeter is 40 meters. Find the constant of proportionality kk, then calculate the perimeter when the side length is 25 meters.
  1. P=ksP = ks

    Write the direct variation formula using PP for perimeter and ss for side length.

  2. 40=k1040 = k \cdot 10

    Substitute the known values: perimeter is 40 meters when side length is 10 meters.

  3. k=4k = 4

    Divide both sides by 10 to find k=40÷10=4k = 40 \div 10 = 4.

  4. P=425P = 4 \cdot 25

    Apply the formula with the new side length s=25s = 25 meters.

  5. P=100P = 100

    Multiply to find that the perimeter is 100 meters.

Answer: k=4 and P=100 metersk = 4 \text{ and } P = 100 \text{ meters}

In real applications, direct variation appears whenever one quantity depends proportionally on another, like perimeter depending on dimensions, cost depending on quantity, or distance depending on speed. Finding kk first gives you a complete rule to answer any follow-up question.

Common mistakes

Where Direct Variation usually goes wrong
Answer came out wrong
I found y=3y = -3 when x=2x = 2, so the constant is k=2÷(3)=23k = 2 \div (-3) = -\tfrac{2}{3}.
To find kk from any (x,y)(x, y) pair, calculate k=y÷x=(3)÷2=32k = y \div x = (-3) \div 2 = -\tfrac{3}{2}, not x÷yx \div y.
The equation y=3x+5y = 3x + 5 shows direct variation.
Direct variation must be in the form y=kxy = kx with no extra constant. If you see y=kx+by = kx + b where b0b \neq 0, it is not direct variation.
In direct variation with negative k, as x increases, y must increase too.
When k<0k < 0, as xx increases, yy decreases. When k>0k > 0, as xx increases, yy increases. Direct variation only guarantees proportionality, not a particular direction.
The mistakeWhy it is wrongThe fix
I found y=3y = -3 when x=2x = 2, so the constant is k=2÷(3)=23k = 2 \div (-3) = -\tfrac{2}{3}.The ratio k=y/xk = y/x always divides the dependent variable by the independent variable, not the other way around.To find kk from any (x,y)(x, y) pair, calculate k=y÷x=(3)÷2=32k = y \div x = (-3) \div 2 = -\tfrac{3}{2}, not x÷yx \div y.
The equation y=3x+5y = 3x + 5 shows direct variation.Direct variation is a specific relationship where the output is zero when the input is zero. Any constant term breaks this property, creating a linear equation that is not direct variation.Direct variation must be in the form y=kxy = kx with no extra constant. If you see y=kx+by = kx + b where b0b \neq 0, it is not direct variation.
In direct variation with negative k, as x increases, y must increase too.The constant kk controls both the size and direction of change. A negative kk reverses the direction of the relationship compared to when kk is positive.When k<0k < 0, as xx increases, yy decreases. When k>0k > 0, as xx increases, yy increases. Direct variation only guarantees proportionality, not a particular direction.

Tips and when to use something else

  • To find kk from any known (x,y)(x, y) pair where x0x \neq 0, calculate k=y÷xk = y \div x and the relationship is fully determined.
  • After finding kk, verify by substituting back into y=kxy = kx to confirm both sides of the original equation match.
  • Every direct variation graph passes through the origin (0,0)(0, 0) because when x=0x = 0, the formula gives y=k0=0y = k \cdot 0 = 0 always.
  • If the equation has a y-intercept (a constant term), it is not direct variation—use Linear Equations instead; if y=k/xy = k/x, use Inverse Variation instead.

Frequently asked questions

What's the difference between direct variation and a regular linear equation?
Direct variation is a special type of linear relationship where y=kxy = kx with no constant term. Regular linear equations can have a y-intercept, so they take the form y=mx+by = mx + b. Direct variation always passes through the origin, but other linear equations might not.
How do I find the constant of proportionality from a graph?
Pick any point (x,y)(x, y) on the line (other than the origin) and calculate k=y÷xk = y \div x. For example, if the line passes through (3,9)(3, 9), then k=9÷3=3k = 9 \div 3 = 3. Since the line passes through the origin in direct variation, this method always works.
Can the constant of proportionality be a fraction or negative?
Yes to both. The constant kk can be any real number—positive, negative, zero, or fractional. The sign of kk tells you the direction of the relationship (positive means same direction, negative means opposite), and fractional values mean slower changes between variables.
How is direct variation used in real life?
Many situations involve direct variation: the cost of items is directly proportional to quantity, distance traveled is directly proportional to speed (given time), and wages are directly proportional to hours worked (at a fixed hourly rate). Recognizing direct variation helps solve these problems quickly using y=kxy = kx.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18