# Direct Variation Calculator

URL: https://speedycalculator.com/calculators/math/direct-variation/
Last updated: 2026-11-08

> The direct variation calculator works with y = kx: enter any two of y, x and the constant of proportionality k to get the third.

## Inputs

- Solve for
- Dependent variable y
- Independent variable x
- Constant of proportionality k

## Results

- y
- x
- k
- Equation y = kx with k =

## Formula

```
y = k · x,  k = y ÷ x
```

## Explanation

Two quantities vary directly when doubling one doubles the other: pay and hours worked, distance and time at constant speed, cost and weight of fruit. The graph is a straight line through the origin with slope k.

### How to use the Direct Variation Calculator

- **Solve for**
- **Dependent variable y**
- **Independent variable x**
- **Constant of proportionality k**

Results update as you type, and everything is calculated in your browser.

### How it works

Choose which quantity you want and enter the other two. The constant k is the ratio y/x, which is the same for every pair of values that vary directly.

### Inputs explained

FieldWhat to enterSolve forChoose one: y (dependent variable), x (independent variable), k (constant of proportionality)Dependent variable yA numberIndependent variable xA numberConstant of proportionality kA number

### What each result means

- **y** = [Constant of proportionality k]×[Independent variable x]
- **x** = [Dependent variable y]÷[Constant of proportionality k]
- **k** = [Dependent variable y]÷[Independent variable x]

### Example values

How the main result changes when **Dependent variable y** changes and everything else stays at the example values above:

Dependent variable yy183627363636453654367236

## Worked example

Inputs: Solve for: y (dependent variable); Independent variable x: 4; Constant of proportionality k: 9.

Results: **y = 36**; Equation y = kx with k = = 9.

## Key terms

- **Direct variation**: y = kx for a constant k.
- **Constant of proportionality**: The fixed ratio k = y/x.

## FAQ

**How do I know if two quantities vary directly?**
Their ratio y/x is constant, and the graph is a straight line through the origin.

**What is the constant of variation?**
k = y/x, the amount y changes per unit of x.

**Is y = 2x + 3 a direct variation?**
No, it does not pass through the origin, so y/x is not constant.

**What is the opposite of direct variation?**
Inverse variation, y = k/x.


## Sources

- [OpenStax: College Algebra 2e](https://openstax.org/details/books/college-algebra-2e)
- [OpenStax: Intermediate Algebra 2e](https://openstax.org/details/books/intermediate-algebra-2e)
