Constant of Proportionality Calculator — Find k = y/x

Constant of Proportionality Calculator

Find k from one pair of values or a whole table, check whether the relationship is really proportional, and use k to solve for a missing value—for direct or inverse proportion.

x is the input, y is the output

Put the quantity you control or start from in x—hours, kilograms, number of items—and the result that depends on it in y. For direct proportion k = y ÷ x; for inverse proportion k = x × y.

What do you have?

Relationship

How to Use This Calculator

  1. Choose One Pair if you know a single x and y, Table of Values to check several pairs at once, or Missing Value to solve a word problem.
  2. Choose Direct when both quantities rise together, or Inverse when one goes up as the other goes down.
  3. Enter your numbers and press Calculate.
  4. Read k as a decimal and a fraction, the equation, and the graph. In table mode the calculator also says whether every pair fits the same k.

What Is the Constant of Proportionality?

A constant of proportionality calculator finds the constant ratio between two directly proportional variables. For an equation written as y = kx, the constant of proportionality is k = y/x. Enter corresponding x and y values to calculate k, which remains constant when the two variables have a directly proportional relationship.

Put simply, two quantities are proportional when one is always the same multiple of the other. If apples cost $2.50 per pound, the price is always 2.5 times the weight, so k = 2.5 and price = 2.5 × weight.

In everyday terms, k is the unit rate: the amount of y for one unit of x. Speed in km per hour, price per item, pay per hour, and grams per serving are all constants of proportionality. It is also called the constant of variation in algebra.

In a table

Every y ÷ x gives the same number.

On a graph

A straight line through the origin; k is its slope and the y-value at x = 1.

In an equation

y = kx with no added constant.

Curriculum reference: Common Core State Standards — Grade 7, 7.RP.A.2.b.

Constant of Proportionality Formulas

Direct proportion

y = kx  →  k = y ÷ x

Double x and y doubles.

Inverse proportion

y = k ÷ x  →  k = x × y

Double x and y halves.

Missing value, direct

y₂ = (y₁ ÷ x₁) × x₂

Same as solving y₁/x₁ = y₂/x₂ by cross-multiplying.

Missing value, inverse

y₂ = (x₁ × y₁) ÷ x₂

The product x × y stays fixed.

Algebra reference: OpenStax Elementary Algebra — 8.9 Use Direct and Inverse Variation.

Worked Examples

From a pair

3 lb of apples cost $7.50. k = 7.50 ÷ 3 = 2.5, so price = 2.5 × pounds. 8 lb cost 2.5 × 8 = $20.

From a table

A car travels 110 km in 2 h, 220 km in 4 h, and 330 km in 6 h. Each distance ÷ time = 55, so the table is proportional with k = 55 km/h.

Inverse

4 painters finish a job in 12 days. k = 4 × 12 = 48 painter-days. With 6 painters it takes 48 ÷ 6 = 8 days.

Proportional or Not? Four Quick Tests

A relationship can rise steadily and still not be proportional. Any one failed test rules it out.

TestProportionalNot proportional
Ratio y ÷ xSame for every pairChanges from pair to pair
At x = 0y = 0y has a starting value
GraphStraight line through (0, 0)Curved, or straight but missing the origin
Equationy = 4xy = 4x + 10, y = x²

The classic trap: a fixed fee

A taxi charges $3 to start plus $2 per km. 5 km costs $13 and 10 km costs $23. The cost rises steadily, but 13 ÷ 5 = 2.6 and 23 ÷ 10 = 2.3 are different, so cost is not proportional to distance. It is a linear relationship with slope 2 and intercept 3. Only the extra cost above the $3 fee is proportional to distance.

Further practice: Lumen Learning — Solve direct variation problems.

Direct vs. Inverse Proportion

Ask what happens to y when x doubles. If y doubles, it is direct. If y halves, it is inverse.

FeatureDirectInverse
Equationy = kxy = k ÷ x
What stays constantThe ratio y ÷ xThe product x × y
GraphStraight line through the originCurve (hyperbola) that never touches the axes
ExamplesCost and quantity, distance and time at fixed speed, wages and hoursWorkers and days for a job, speed and travel time for a fixed distance, pressure and volume of a gas

Some relationships are proportional to a power of x instead. The area of a circle is proportional to the radius squared (A = πr², k = π), and gravitational force is inversely proportional to distance squared. The same idea applies: one quantity equals a constant times a fixed function of the other.

Variation reference: LibreTexts College Algebra — Modeling Using Variation.

Frequently Asked Questions

Is the constant of proportionality the same as the unit rate?

Yes, for a direct proportion. Both are the amount of y for one unit of x. "Unit rate" is the everyday name, such as $2.50 per pound; "constant of proportionality" is the name used in mathematics for equations and graphs. In algebra, k is also the coefficient of x in y = kx.

How do I find k from a graph?

Check that the line is straight and passes through (0, 0). Then pick any point on it and divide its y-coordinate by its x-coordinate. The point where the x-value is 1 is the easiest: its y-value is k. That quotient is also the slope of the line.

Is it y ÷ x or x ÷ y?

The standard formula is k = y ÷ x, from y = kx, where x is the input variable and y the output. The reverse ratio x ÷ y is also constant in a proportional relationship—it is 1 ÷ k—but it describes x in terms of y. The calculator shows both, so check which one your question asks for.

Can the constant of proportionality be negative?

Yes. With k = −3, y = −3x: as x increases, y decreases at a steady rate and the line still passes through the origin. In real-world word problems with prices, distances, or times, k is normally positive because each quantity involved is positive.

What if x is 0?

For a direct proportion you cannot divide by 0, so use another pair to find k. The ordered pair (0, 0) always fits a direct proportion, and in table mode it is checked but not used to calculate k. A pair like (0, 5) means the relationship is not proportional—it may still be a linear relationship, just one with a starting value. For an inverse proportion, x can never be 0, because the product x × y must stay equal to k.

What if my table's ratios are only nearly equal?

Measured data are rarely perfect. The calculator flags any data point whose ratio differs from k by more than 0.5% and also reports a best-fit k through the origin (least squares). If the differences are small and random, the relationship is close to proportional; if they grow steadily, it probably is not. A side-by-side comparison of the ratio column makes the pattern easy to spot.

Does k have units?

Usually. k takes the units of y divided by the units of x: dollars per pound, km per hour, grams per serving. For inverse proportion it takes the units of x times y, such as painter-days. Writing the units helps catch mistakes such as dividing the wrong way. When both quantities share the same unit, k has no unit and can be written as a plain fraction or decimal.

How is this used in recipes and scale drawings?

Scaling a recipe or a map uses one constant for everything. If a recipe for 4 needs 300 g of flour, k = 75 g per person, and 10 people need 750 g. On a 1:50,000 map, the scale factor is 50,000, so 3 cm on the map is 150,000 cm, or 1.5 km. Enlarging a photo works the same way: every length is multiplied by the same factor.

Other Useful Calculators

Disclaimer: This calculator is provided for educational and informational purposes. Results depend entirely on the values entered and on choosing the correct relationship type; a constant of proportionality only describes data that are genuinely proportional (or inversely proportional). Decimal results are rounded to the selected precision, and fractions are shown when a simple exact fraction matches the value. Check results against your course materials or the original problem before relying on them for graded work, pricing, dosing, engineering, or other consequential decisions.

Last updated: October 5, 2026