Constant of Proportionality Calculator
A worksheet gives you x = 4 and y = 20 and asks for the constant of proportionality, and the two mistakes that cost marks are dividing the wrong way round and stopping at a decimal when the answer should be a fraction. This calculator removes both: it solves for k, x, or y in direct and inverse proportions, and reports k as a reduced fraction and a decimal.
Every answer comes with a four-step derivation and a verification that substitutes the numbers back into the equation, plus a table of corresponding values from x = 1 to 10, so you can see the relationship the constant describes instead of trusting a single number.
One pair of values identifies k only if the relationship really is proportional. If your data came from measurements, test a second pair: a proportional relationship returns the same k for every pair.
Quick Answer
Key takeaways
- Direct: k = y / x. Inverse: k = x times y. Picking the wrong one is the most common error on this topic, and the type selector exists to prevent it.
- K is a rate in disguise: it carries units of y per x, like dollars per hour or kilometres per hour.
- A proportional relationship gives the same k from every pair of values. Different k values from different pairs means the relationship is not proportional.
- The graph of a direct proportion is a straight line through the origin. A line that misses the origin has a fixed offset and no single constant of proportionality.
How to use the constant of proportionality calculator
Choose what you are solving for first. The field you do not need hides itself: solving for k asks for x and y, solving for y asks for x and k, and solving for x asks for y and k. Then set the relationship type. Direct covers most school and rate problems, where the quantities rise together. Inverse covers problems where a fixed amount is shared or spread, like workers sharing a job or speed against time on a fixed journey. Press Calculate and read the result in order: the answer, the equation, the verification line, the four steps, and the values table.
The calculator is pre-filled with the worked example below (solve for k, direct, x = 4, y = 20). Switch the type to inverse without changing the numbers and recalculate to see k jump from 5 to 80, which is the fastest way to feel the difference between the two operations. If your problem is stated as a ratio between two quantities rather than an equation, the common ratio calculator works that side of the same idea.
The formulas for direct and inverse proportion
Inverse proportion: y = k / x, so k = x times y, y = k / x, and x = k / y.
Both formulas say the same thing in different shapes: something stays fixed while the two quantities move. In a direct proportion the fixed thing is the ratio y / x, which is why k is also called the constant ratio. In an inverse proportion the fixed thing is the product x times y. That is the test to run on any table of data before reaching for this calculator: divide the pairs for direct, multiply them for inverse, and see which operation gives the same answer every row. Curriculum references such as the Khan Academy ratios and proportions unit teach exactly this ratio test for grade level work.
Worked example: one pair of numbers, two constants
Take x = 4 and y = 20. As a direct proportion, k = 20 / 4 = 5 and the table the calculator builds runs:
| x | y = 5x | x | y = 5x |
|---|---|---|---|
| 1 | 5 | 6 | 30 |
| 2 | 10 | 7 | 35 |
| 3 | 15 | 8 | 40 |
| 4 | 20 | 9 | 45 |
| 5 | 25 | 10 | 50 |
As an inverse proportion, the same pair gives k = 80, and the table runs the other way: x = 1 gives y = 80, x = 2 gives 40, x = 4 gives the original 20, x = 8 gives 10, and x = 10 gives 8. Notice what stays still in each version: in the direct table, every y / x is 5; in the inverse table, every x times y is 80. That stillness is the definition of the constant, and the verification line in the result box performs the check for your exact numbers.
Reading k as a unit rate
The constant is rarely just a number in a real problem; it is a rate with units attached, and the units tell you whether you divided the right way. Pay of $90 for 6 hours gives k = 90 / 6 = 15 dollars per hour, and the equation y = 15x predicts any shift length. A car covering 210 km in 3 hours gives k = 70 kilometres per hour. Circumference against diameter gives k = pi, about 3.14159, a constant with no units at all because both sides are lengths.
The unit check catches the classic error. If you divide hours by dollars you get hours per dollar, a number near 0.067 for the pay example, which no pay problem is asking for. When a computed k looks implausibly small or large, read its units aloud: if they are backwards, the division was backwards. Inverse constants have compound units instead (worker-hours for a shared job, for example), because k there is a product, not a rate.
Direct proportion signs
- Both quantities rise or fall together
- y / x is the same for every pair
- Graph is a straight line through the origin
- k reads as a unit rate (y per x)
Inverse proportion signs
- One quantity rises as the other falls
- x times y is the same for every pair
- Graph is a curve (a hyperbola), never a line
- k is a fixed total being shared or spread
What competing calculators miss
The top results for this term split into two camps: direct-only tools that cannot touch inverse problems, and inverse-only tools that do the reverse. Both camps share the same gaps.
Miss 1: one direction only. Most rivals solve for k alone. This calculator solves for whichever of x, y, or k is missing, in both relationship types: six solve paths in one tool, each with its own derivation.
Miss 2: decimal only answers. Several tools return 0.333333 and stop. School and textbook answers expect the fraction, so k is reported as a reduced fraction (1/3) with the decimal beside it.
Miss 3: no verification. A bare answer cannot be checked. Here the fourth step substitutes the result back into the original equation, and the x = 1 to 10 table lets you confirm the pattern holds beyond the single pair you entered.
Frequently Asked Questions
For a direct proportion, divide y by x: k = y / x. With x = 4 and y = 20, k = 20 / 4 = 5, and the equation is y = 5x. For an inverse proportion, multiply instead: k = x times y, so the same pair gives k = 80 and the equation y = 80 / x.
It is k, the fixed multiplier between the two quantities. Every pair of corresponding values in the relationship shares the same k, which is what makes the relationship proportional rather than just any straight line or curve.
In a direct proportion, y = kx, both quantities grow together: doubling x doubles y. In an inverse proportion, y = k / x, they move in opposite directions: doubling x halves y, and the product x times y stays constant at k.
Yes. If x = 4 and y = 6 in a direct proportion, k = 6 / 4 = 3/2, or 1.5. This calculator reports k both as a reduced fraction and as a decimal, because homework answers are usually expected as fractions.
Compute y / x for every row of a direct proportion (or x times y for an inverse one). If every row gives the same k, the relationship is proportional with that constant. If the values differ, no single constant exists and the relationship is not proportional.
K carries units: y units per x unit. If x is hours worked and y is pay, k is the hourly wage. If x is time and y is distance, k is the speed. A k of 5 in the worked example means y grows by 5 for every 1 unit of x.
Because both ways of solving for k divide by or multiply out x in a way that breaks at zero: k = y / x is undefined at x = 0, and a single point at x = 0 fits every possible k, so it identifies none of them. The calculator rejects x = 0 with an explanation instead of returning nonsense.
Add This Calculator to Your Website
References
- Khan Academy, Ratios and Proportional Relationships unit: identifying the constant of proportionality from equations, tables, and graphs, including the y / x ratio test. Khan Academy: Ratios and Proportions. Accessed October 2026.
- Math is Fun reference on direct and inverse proportion, with the y = kx and y = k / x forms and worked examples used in school curricula. Math is Fun: Directly and Inversely Proportional. Accessed October 2026.
- Common Core State Standards for Mathematics, grade 7 ratios and proportional relationships (7.RP): analyzing proportional relationships and identifying the constant of proportionality. Common Core: Grade 7 Ratios and Proportional Relationships. Accessed October 2026.
