Equations of Proportional Relationships: How to Write y = kx

#7th Grade Math#Ratios and Proportional Relationships#Equations of Proportional Relationships
TL;DR
Equations of proportional relationships take the form y=kxy = kx, where kk, the constant of proportionality, is the amount of yy for each 1 of xx. Six worked examples find kk from tables, graphs and words.
Bhanzu TeamLast updated on November 23, 202616 min read

Key Points

  • Equations of proportional relationships always have the shape y=kxy = kx, so doubling xx doubles yy, and an xx of 0 gives a yy of 0.
  • To find kk, divide any yy value by its matching xx value, then check that every other pair gives the same quotient.
  • A taxi fare of $3 to start plus $2 per mile is not proportional, because its y÷xy \div x values for 1, 2 and 4 miles are 5, 3.5 and 2.75.
  • Common Core places writing y=kxy = kx in 7th grade, and swapping which quantity is xx turns kk into its reciprocal, such as 4 and one fourth.

One number runs the whole gas pump

A gas pump multiplies by one number for every gallon it pours. Pump 2 gallons and the screen shows twice the price of 1. Pump 10 and it shows ten times as much, with no start fee added (unlike a taxi meter).

A popcorn stand with one price per bag runs on the same rule, and so does a faucet that pours the same amount every minute. Spot that single multiplier, and one short equation answers every question about the situation, forward and backward.

Mapmakers use one scale number to turn centimeters on paper into kilometers on the ground. Bakers use a single multiplier to stretch a 12-cookie recipe to 120, and electricians use Ohm's law to get the voltage across a resistor from the current flowing through it.

Double number line of popcorn at 2.50 dollars per bag, the model behind equations of proportional relationships.
Double number line with 0, 1, 2, 3 and 4 bags on the bottom and 0, 2.50, 5.00, 7.50 and 10.00 dollars on top, joined by a times 2.5 arrow at every mark.

What is the equation of a proportional relationship?

Equations of proportional relationships say that yy equals one fixed number times xx, every time, written y=kxy = kx. Here xx and yy are variables (quantities that change together), and kk is a constant, a number that stays put. That number is the constant of proportionality, also called the unit rate, the value of yy when xx is 1.

y=kxy = kx
Symbol Meaning Units at a gas pump
yy the total cost dollars
kk the constant of proportionality, the price of 1 gallon dollars per gallon
xx the number of gallons gallons

The formula works because every xx gets multiplied by the same number, and 1 times that number is the number itself. In the week of November 16, 2026, the US average price of regular gasoline was $3.805 a gallon, according to the US Energy Information Administration. That week a pump ran on c=3.805gc = 3.805g, with cc the cost and gg the gallons, and the price changes weekly while the shape of the equation stays the same.

This skill is Common Core standard 7.RP.A.2c, which asks 7th graders to write proportional relationships as equations, such as total cost t=pnt = pn for nn items at price pp. By the end of 7th grade, your child should be able to build y=kxy = kx from a table, a graph or a sentence and use it to find a missing amount in either direction. In Algebra 1 the same equation returns as direct variation, which the OpenStax textbook Elementary Algebra 2e defines with k≠0k \neq 0.

How do you find k from a table, a graph or a description?

To write an equation for a proportional relationship, divide a yy value by the xx value it is paired with, and the quotient is kk. Every form of a proportional relationship hides that same number.

Where it comes from How to read kk Popcorn at $2.50 a bag
A description the number after "per", "each" or "for every" "$2.50 per bag" gives 2.5
A table divide yy by xx in any row 5÷2=2.55 \div 2 = 2.5
A graph read yy at x=1x = 1, or divide at any point except (0, 0) the point (1, 2.5)
  1. Say in words which quantity is xx and which is yy, such as bags and dollars.
  2. Divide one yy value by its matching xx value. In ratio tables, any row works.
  3. Check that every other pair gives the same quotient and that 0 of xx gives 0 of yy. If either check fails, stop, because no y=kxy = kx equation fits.
  4. Write y=kxy = kx with your number in place of kk.
  5. Substitute one pair back in to confirm it.
The constant of proportionality k = 2.5 read from words, a table and a graph of the same popcorn price.
Three panels for popcorn at 2.50 dollars per bag: the words 2.50 dollars per bag, a table of 2, 4 and 6 bags costing 5, 10 and 15 dollars with every dollars divided by bags equal to 2.5, and a graph through (0, 0), (1, 2.5) and (4, 10), under the banner k = 2.5, so c = 2.5b.

On a graph, a proportional relationship is a straight line through (0, 0), the origin, as graphs of proportional relationships explains. The origin is the one point that cannot give kk, because 0÷00 \div 0 has no value.

A child who finds 2.5 in the first row often writes the equation at once and never divides the second row, which is how a hidden start fee slips past. The Institute of Education Sciences practice guide on fractions recommends visual tools such as ratio tables for this work. It reports that students tend to build ratios up by adding before they see the multiplying pattern.

Try It Yourself

Drag the k slider and watch every y value in the table change by the same multiplier while the line keeps passing through (0, 0). Then raise the start amount and see the y÷xy \div x row stop matching and the line leave the origin, which means the relationship is no longer proportional. Press Reset to return to k = 2.5 with no start amount.

Which quantity is x and which is y?

The quantity you know or choose is xx, the independent variable, and the quantity that depends on it is yy. The question decides which is which.

A faucet fills 8 gallons in 2 minutes. With minutes as xx, k=8÷2=4k = 8 \div 2 = 4 gallons per minute, but with gallons as xx, k=2÷8=14k = 2 \div 8 = \frac{1}{4} minute per gallon. Swapping the letters turns kk into its reciprocal (the number you multiply by to get 1).

The question asks for Equation to use What kk means
gallons after 5 minutes y=4xy = 4x, so 20 gallons 4 gallons per minute
minutes to fill a 30-gallon tub y=14xy = \frac{1}{4}x, so 7.5 minutes one fourth of a minute per gallon

This part confuses plenty of adults, because two different equations are both correct for one faucet. Neither one is wrong. Pick the one whose yy is the thing the question asks for.

How do you use y = kx to solve problems?

Put the number you know in its place and solve for the other one. To find yy, multiply by kk. To find xx, divide both sides by kk.

Words in the problem Math it means
"$2.50 per bag" or "each bag costs $2.50" k=2.5k = 2.5
"the total cost" yy, written here as cc
"costs" or "is" ==
"how many bags can $20 buy" solve 20=2.5b20 = 2.5b for bb

For the popcorn stand, let cc be the cost in dollars and bb the number of bags.

c=2.5bc = 2.5b

Nine bags cost 2.5×9=22.52.5 \times 9 = 22.5, so $22.50. To work backward from $20, substitute 20 for cc.

20=2.5b20 = 2.5b

Divide both sides by 2.5.

b=8b = 8

Examples of equations of proportional relationships

Example 1

Smoothies cost $4 each. Write an equation for the total cost cc of nn smoothies.

The word "each" gives the price of 1 smoothie, so k=4k = 4.

c=4nc = 4n

As a check, three smoothies cost 4×3=124 \times 3 = 12 dollars.

Example 2

Working 2, 3 and 5 hours earns $27, $40.50 and $67.50. Write an equation for the pay yy after xx hours.

Divide each pay by its hours.

27÷2=13.527 \div 2 = 13.5
40.50÷3=13.540.50 \div 3 = 13.5
67.50÷5=13.567.50 \div 5 = 13.5

Every row gives 13.5, so the relationship is proportional and k=13.5k = 13.5.

y=13.5xy = 13.5x

Example 3

A recipe table pairs 3, 5 and 8 cups of flour with 24, 40 and 64 cookies. Write an equation for cookies yy from cups xx.

The tempting move is to compare the first row by subtracting. It has 24 cookies and 3 cups, a difference of 21, so the rule looks like y=x+21y = x + 21.

That rule fits row one and nothing else. For 5 cups it predicts 5+21=265 + 21 = 26 cookies, but the table says 40. For 0 cups it promises 21 cookies made from no flour at all.

Divide instead of subtracting.

24÷3=824 \div 3 = 8
40÷5=840 \div 5 = 8
64÷8=864 \div 8 = 8
y=8xy = 8x

Row two agrees, since 8×5=408 \times 5 = 40.

Example 4

A proportional graph passes through (0, 0) and (8, 6). Write its equation and find yy when x=20x = 20.

k=6÷8=34k = 6 \div 8 = \frac{3}{4}
y=34xy = \frac{3}{4}x
Graph of the proportional relationship y = 3/4 x passing through the origin and the point (8, 6).
Coordinate grid with x from 0 to 10 and y from 0 to 8, showing a straight line through the labeled points (0, 0), (1, 0.75), (4, 3) and (8, 6), with the note k = 6 divided by 8 = 3/4, so y = (3/4)x.
y=34×20=15y = \frac{3}{4} \times 20 = 15

When x=20x = 20, y=15y = 15.

Example 5

Regular gas cost $3.805 a gallon in the week of November 16, 2026. How many gallons does $45.66 buy?

Let gg be the number of gallons and cc the cost in dollars.

c=3.805gc = 3.805g
45.66=3.805g45.66 = 3.805g

Divide both sides by 3.805.

g=12g = 12

The $45.66 buys 12 gallons, and 3.805×12=45.663.805 \times 12 = 45.66 confirms it.

Example 6

Shop A rents bikes at a price proportional to time, $18 for 3 hours. Shop B charges $5 an hour plus a $6 helmet fee. Which shop is cheaper for 5 hours, and is Shop B proportional?

For Shop A, k=18÷3=6k = 18 \div 3 = 6, so y=6xy = 6x.

Five hours at Shop A cost 6×5=306 \times 5 = 30 dollars.

Five hours at Shop B cost 5×5+6=315 \times 5 + 6 = 31 dollars.

Shop A is cheaper by $1. Shop B is not proportional, because 3 hours there cost $21 and 21÷3=721 \div 3 = 7, while 31÷5=6.231 \div 5 = 6.2. Zero hours at Shop B would still cost the $6 fee.

What makes y = kx worth learning?

One short equation replaces a table that never ends and answers questions in both directions, which is why 7th grade trades long ratio tables for y=kxy = kx.

  • It prices any amount without new work. The popcorn rule c=2.5bc = 2.5b handles 1 bag or 1,000 bags.
  • It makes exact conversions possible. Since July 1, 1959, one inch has been exactly 2.54 centimeters, as the National Institute of Standards and Technology records, so c=2.54ic = 2.54i turns a 60-inch height into 152.4 cm152.4\,\text{cm} (no rounding needed).
  • It runs backward as easily as forward. Divide both sides of c=2.54ic = 2.54i by 2.54, and 254 centimeters becomes 100 inches.
  • It sets up 8th grade, where kk becomes the slope of a line and students start comparing proportional relationships given in different forms.
  • It is a skill many 8th graders are still building. In the 2024 NAEP mathematics results, 28 percent of eighth graders performed at or above NAEP Proficient and 39 percent scored below NAEP Basic, 8 points more than in 2019.

Each use comes from the same move. Find what 1 of xx is worth, then let that number do the multiplying.

The part of proportional equations nobody explains

The constant kk is a rate with units, and three useful facts follow from that.

  • The units set the order of division. "Dollars per bag" means dollars divided by bags, so popcorn gives k=2.5k = 2.5, while bags per dollar would be 1÷2.5=0.41 \div 2.5 = 0.4.
  • Zero always gives zero. A table can leave out its 0 row, but k×0=0k \times 0 = 0 every time, so asking what 0 of xx would cost exposes any start fee in one quick step.
  • One equation beats one proportion. A proportion such as 243=40x\frac{24}{3} = \frac{40}{x} finds one missing value, while y=8xy = 8x finds every missing value in the relationship.

Proportional equations: spot the trap before you fall in

Mistake 1: Dividing x by y to find k

Where it slips in: Reading kk from a table of 4 hours and 260 miles, because the eye moves left to right and divides the first column by the second.

Don't do this: k=4÷260=165k = 4 \div 260 = \frac{1}{65}, so y=165xy = \frac{1}{65}x, which claims a 4-hour drive covers 465\frac{4}{65} of a mile.

The correct way: k=y÷x=260÷4=65k = y \div x = 260 \div 4 = 65, so y=65xy = 65x, which is 65 miles per hour.

The wrong answer looks tidy, and a child who gets a clean number tends to trust it without reading it back as 65 miles each hour.

Wrong versus right way to find k, dividing x by y on the left and y by x on the right.
Side by side for a table of 4 hours and 260 miles, with the wrong k = 4 divided by 260 = 1/65 on the left and the correct k = 260 divided by 4 = 65 and y = 65x on the right, both under the rule k = y divided by x.

Mistake 2: Writing the units as the equation

Where it slips in: Turning "Maya reads 12 pages every 20 minutes" into symbols, because children copy the sentence order and let the letters stand for the words instead of for numbers.

Don't do this: 12p=20m12p = 20m.

The correct way: Let pp be the number of pages and mm the number of minutes. Then k=12÷20=0.6k = 12 \div 20 = 0.6 pages per minute, so p=0.6mp = 0.6m, and 45 minutes gives 0.6×45=270.6 \times 45 = 27 pages.

Mistake 3: Calling a start fee proportional

Where it slips in: A taxi charges $3 to start plus $2 per mile, so 1, 2 and 4 miles cost $5, $7 and $11. Both columns grow together and the first row gives 5÷1=55 \div 1 = 5, so it feels proportional.

Don't do this: y=5xy = 5x, which predicts $20 for 4 miles instead of $11.

The correct way: Divide every row to get 5, 3.5 and 2.75. The quotients change, and 0 miles still costs $3, so no y=kxy = kx equation fits. The fare follows y=2x+3y = 2x + 3, a non-proportional relationship equation that 8th grade calls slope-intercept form.

Key Takeaways

  • Ask what 1 of xx is worth in yy, and that number is kk.
  • Divide every row of a table before you trust the first quotient.
  • Before writing equations of proportional relationships, ask what 0 of xx would cost, because any answer other than 0 means a start fee.
  • Decide what the question asks for first, then let that quantity be yy.
  • To practice checking every row before trusting kk, with a teacher who catches the start-fee trap, explore Bhanzu's 7th grade math curriculum or an algebra tutor.

A Practical Next Step

Solve these four on paper, finding kk before anything else. At home, pick one item priced by the pound on a grocery receipt and write its equation with your child as a fifth problem.

  1. A table shows 4 tickets for $38 and 7 tickets for $66.50. Write the equation.
  2. A proportional graph passes through (0, 0) and (5, 4). Find yy when x=15x = 15.
  3. Using c=2.54ic = 2.54i, where cc is centimeters and ii is inches, how many inches is 127 centimeters?
  4. Is the table with xx values 2, 4 and 6 and yy values 7, 12 and 17 proportional?

Answers: y=9.5xy = 9.5x, then 12, then 50 inches, then no, because 7÷2=3.57 \div 2 = 3.5 but 12÷4=312 \div 4 = 3.

Practice these to solidify your understanding. If problem 4 catches you, return to Mistake 3. Want a live Bhanzu trainer to walk through more equations of proportional relationships problems? Book a free demo class, online globally, or in person at our McKinney, TX center.

Read More

Research Behind This Article

  1. US Energy Information Administration, Gasoline and Diesel Fuel Update (2026). eia.gov
  2. NGA Center and CCSSO, Common Core State Standards for Mathematics, Grade 7, Ratios and Proportional Relationships (2010). thecorestandards.org
  3. OpenStax, Elementary Algebra 2e, Section 8.9, Use Direct and Inverse Variation (2020). openstax.org
  4. Institute of Education Sciences, What Works Clearinghouse, Developing Effective Fractions Instruction for Kindergarten Through 8th Grade (2010). ies.ed.gov
  5. National Institute of Standards and Technology, SI Units: Length (2025). nist.gov
  6. National Center for Education Statistics, The Nation's Report Card: 2024 Mathematics Assessment, Grades 4 and 8 (2025). nationsreportcard.gov

Quick Quiz: Check Yourself

Three levels, new numbers every time: find k from a table and price tickets, then find a fraction k or use a graph point, then work backward from a total and compare two shops.

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

Is the constant of proportionality the same as the unit rate?
Yes, the constant of proportionality is the unit rate, the yy for 1 of xx, such as 2.5 dollars per bag.
Is the constant of proportionality the slope?
For a proportional graph, yes. In 8th grade, the kk in equations of proportional relationships gets a second name, slope, and the line y=0.75xy = 0.75x rises 0.75 for each step of 1 to the right. The section How do you find k from a table, a graph or a description shows how to find k from a graph by reading the point where x=1x = 1.
Can the constant of proportionality be 0?
No. With k=0k = 0, every yy would be 0 whatever xx is, so nothing grows with xx, which is why the OpenStax definition of direct variation requires k≠0k \neq 0.
Can a proportional relationship have negative numbers?
Yes, kk can be negative. A temperature that drops 2 degrees each hour changes by y=−2xy = -2x degrees after xx hours, though most 7th grade problems use a positive kk.
What do 7th graders learn about proportional relationships?
Common Core lists four connected skills. Students decide whether two quantities are proportional, find the constant of proportionality, write equations of proportional relationships and explain what points such as (0, 0) and (1, r) mean on a graph. The next standard uses the same thinking for percent problems such as simple interest and tax. Once a week, ask your child to say what kk means in one homework problem, since the percent unit builds on that sentence.
How do you teach proportional relationships at home?
Go on a "per hunt" together for prices per pound or miles per gallon, and write an equation for each proportional relationship you find. Real receipts make good proportional relationship equation examples, and adding one non-proportional relationship equation, such as a delivery fee plus a price per item, lets your child see y÷xy \div x change. If the division is fine but the setup keeps going wrong, the struggle is usually about reading the word problem and choosing which quantity is xx. A quick talk with the teacher, or a tutor who slows down on that step, targets it directly.
✍️ Written By
Bhanzu Team
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →