Saved

Press the star next to a tool's name to save it.

All my tools

Variation Calculator

Use this variation calculator to solve direct variation (y = kx) and inverse variation (y = k/x) problems: find the constant k, the equation and a new x or y.

Restored your last values ·

Enter one pair of known values, x and y, and the calculator finds the constant k. Then enter either a new x to find y, or a new y to find x. If you already know the constant, type it in instead of the known pair.

Everything is worked out in your browser. Nothing you type is sent anywhere.

–

–

Choose what you want, fill in the boxes, then press Calculate.

See full result

A variation calculator solves direct and inverse variation problems. Give it one pair of values, and it finds the constant of variation k, writes the equation, and works out a new y for a new x, or a new x for a new y. Choose direct or inverse, enter the numbers and press the button. The rules follow the Wikipedia page on proportionality, and the work is done in your browser. It is both a direct variation calculator and an inverse variation calculator.

How to use the variation calculator

  1. Choose direct or inverse variation.
  2. Enter the known x and y. If you know the constant k, enter it instead.
  3. Enter the new x to find y, or the new y to find x.
  4. Press Calculate.

Direct variation

The Wikipedia page on proportionality says that y is directly proportional to x when y equals k times x for a constant k, which is called the constant of proportionality. Then k is y divided by x for any pair with x not zero, and the graph is a straight line through the origin. Doubling x doubles y. If y is 6 when x is 2, the constant is 3, the equation is y = 3x, and when x is 5, y is 15. If you know the new y instead, say 12, then x is 12 divided by 3, which is 4.

Inverse variation

In inverse variation, y is proportional to 1 divided by x, so y equals k divided by x, which means that x times y is always the constant k. The graph is a hyperbola. Doubling x halves y. The page's own example is distance, speed and time: for a fixed distance d, the speed s times the time t is d, so a higher speed means a shorter time. If y is 3 when x is 4, k is 12, the equation is y = 12 ÷ x, and when x is 6, y is 2. If the new y is 4, then x is 12 divided by 4, which is 3.

Telling the two apart

Check what happens when one quantity goes up. If the other goes up in the same proportion, it is direct variation, and y divided by x stays the same. If the other goes down in the opposite proportion, it is inverse variation, and the product x times y stays the same. Distance at a constant speed is directly proportional to time. Time for a fixed trip is inversely proportional to speed. The circumference of a circle is directly proportional to its diameter, with the constant pi.

Using the constant

When the constant of variation is known, you can skip the first pair of values. For example, the cost of petrol might be directly proportional to the litres bought, with the price per litre as the constant. If the constant is 1.8 and you buy 25 litres, enter k as 1.8 and the new x as 25 to get the cost of 45. In the same way, the time to fill a tank depends inversely on the flow rate, and the product of the two is the volume.

Checking your answer

For direct variation, check that the new y divided by the new x equals k. For inverse variation, check that the new x times the new y equals k. The calculator shows the constant and the equation, so you can test any further pairs by hand. If an answer does not fit, look for a mistake in which pair is the known pair and which is the new one.

A worked example with the constant

Suppose the cost of fabric varies directly with its length, and 3 metres cost 24. The constant is 24 divided by 3, which is 8 per metre, so the equation is y = 8x. For 7.5 metres, the cost is 60. If you have only 100 to spend, the length is 100 divided by 8, which is 12.5 metres. Enter the known pair 3 and 24, then either 7.5 for the new x or 100 for the new y.

A worked example of inverse variation

The time that a job takes varies inversely with the number of workers, if they all work at the same rate. If 6 workers take 10 days, the constant is 60 worker-days, and the equation is y = 60 divided by x. With 15 workers, the job takes 4 days. With 4 days as the target and the number of workers unknown, enter 4 as the new y and you get 15 workers. This model assumes that adding workers causes no delays, which real projects often fail to meet, so treat the answer as a lower bound on the time.

Joint and combined variation

Some problems mix the two types. If y varies directly with x and inversely with z, then y equals k times x divided by z. You can solve such a problem in steps with this calculator by first fixing one variable, or by working out the constant from one full set of values and then applying it by hand. Direct and inverse variation are the building blocks for the more complex forms.

Common mistakes

  • Using direct variation for an inverse problem. Check the direction of the change.
  • Dividing instead of multiplying to find k in inverse variation. It is the product.
  • Entering both a new x and a new y. Fill in only one.
  • Using x = 0 with a known pair. The constant cannot be found from it.
  • Mixing units. Use the same units in the known and the new pair.

What next

Use this often? Add Variation to your Home screen.

Frequently asked questions

What is a variation calculator?

A tool for direct and inverse variation: it finds the constant k and uses it to find a missing x or y.

What is direct variation?

y = kx, so y ÷ x is always k. If y = 6 when x = 2, then k = 3 and y = 15 when x = 5.

What is inverse variation?

y = k ÷ x, so x × y is always k. If y = 3 when x = 4, then k = 12 and y = 2 when x = 6.

How do you find the constant of variation?

For direct variation divide y by x. For inverse variation multiply x by y.

How can I tell direct from inverse variation?

If both quantities rise together in the same ratio it is direct. If one rises as the other falls, with a constant product, it is inverse.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Math Tools