This article was co-authored by Mario Banuelos, PhD and by wikiHow staff writer, Sophie Burkholder, BA. Mario Banuelos is an Associate Professor of Mathematics at California State University, Fresno. With over eight years of teaching experience, Mario specializes in mathematical biology, optimization, statistical models for genome evolution, and data science. Mario holds a BA in Mathematics from California State University, Fresno, and a Ph.D. in Applied Mathematics from the University of California, Merced. Mario has taught at both the high school and collegiate levels.
There are 8 references cited in this article, which can be found at the bottom of the page.
This article has been fact-checked, ensuring the accuracy of any cited facts and confirming the authority of its sources.
This article has been viewed 1,324,108 times.
Working on your algebra homework and needing to find the intersection of two lines, but don’t know where to start? We’ve got you! Below, you’ll find clear and simple steps on finding a point of intersection between two straight lines or a straight and quadratic line. Plus, we’ll share some sample practice problems, as well as step-by-step guidance from Mario Bañuelos, PhD, an Associate Professor of Mathematics.
How do you find the intersection of two lines?
Associate Professor of Mathematics Mario Bañuelos, PhD, says to start with your two lines in format. Then, follow these steps:
- Set the equations equal to each other (e.g., ).
- Use algebraic steps to solve for (e.g., ).
- Once you have plug it into one equation and solve for .
- Check your work by plugging into the other equation.
- If you don’t get the same answer for , retrace your steps to find your error.
- Write your final answer in coordinate format: i.e., .
Steps
How to Find the Intersection of Two Straight Lines
-
Write both equations so that they each have on the left side. Hopefully, both of your equations will already be written so that is alone on one side of the equals sign, and both your equations are written in this format: . However, if this is not the case, you’ll have to adjust one or both equations to fit this format, says Dr. Bañuelos.[1] Remember that, to change the format of an equation, you can cancel out or add terms by performing the same action to both sides.[2]
-
For example, let’s say that your two lines have the equations and .
- The first equation is the correct format. In the second equation, however, we need to isolate .
- The easiest way to do this is to add to both sides of the equation. Then, we’ll end up with as our second line.
-
What if my equations are in point-slope form? If one of your lines is in point-slope form (i.e., y - y1 = m(x - x1)), you’ll need to convert it into before moving forward.
- To do this, first distribute your slope () to get y - y1 = mx - mx1.
- Then, add y - y1 to both sides to get y = mx - mx1 + y1. Now, your equation is in the proper format!
- What if one line is vertical? If one line is vertical, you’ll know because the equation will have no slope or variable. It might look like, for instance, . If you have an equation like this, you already have the value for in your point of intersection! So, all you need to do is plug your value into your other equation and solve for . Then, you’ll have both coordinates for your point of intersection!
Meet the wikiHow expert
Mario Bañuelos, PhD, is an Associate Professor of Mathematics at California State University, Fresno. He holds a BA in Mathematics from CSU-Fresno, and a Ph.D. in Applied Mathematics from UC-Merced.
-
For example, let’s say that your two lines have the equations and .
-
Set the right sides of the equation equal to each other. Now that we have on the left side of both equations, we know that the right sides of each equation are equal to each other (this is because the lines cross where they have the same and values). Write a new equation where both lines are equal to one another, instructs Dr. Bañuelos. In other words, take the non- sides of each equation and put an equals sign between them.[3]
- For example, if you want to know where the lines crosses , you'd equate them by writing .
Advertisement -
Solve for . The new equation only has one variable: . Use algebra to solve for by performing the same operation (or operations) on both sides. Continue until you have alone on one side of the equation, instructs Dr. Bañuelos.[4]
-
For example, these are the steps to solve for in :
- Add to each side: .
- Subtract from each side: .
- Divide each side by : .
- If it’s impossible to solve for in your equation, skip to the last step in this section for tips and tricks.
-
For example, these are the steps to solve for in :
-
Use your new value to solve for . Now that you know what is equal to, Dr. Bañuelos says to replace every in your first equation with your numerical answer. Do the arithmetic to solve for .[5]
- For example, our first equation was and our value was .
- Therefore, we’d plug into to get .
- Using arithmetic, we can solve and simplify to get .
-
Check your work by plugging into your second equation. It’s a good idea to make sure that your answers are correct by plugging your value into your other equation to make sure that you get the same result. If you get a different solution for , go back and check your work for mistakes.
- For example, our second equation was and our value was .
- Therefore, we’d plug into to get .
- Using arithmetic, we can solve and simplify to get .
- We’ll then simplify further to get .
- Since we also got in the previous step, we know that our answer is correct!
-
Write down your and values as a coordinate pair. To properly identify the point of intersection, we need to write the point’s and values as coordinates. So, explains Dr. Bañuelos, write down and as a coordinate pair, following this format: .[6]
- For example, our values are and .
- The two lines intersect at .
-
Troubleshoot any unusual results if necessary. Some equations will make it impossible to solve for , but this doesn’t always mean you’ve made a mistake. There are two ways that a pair of lines could lead to an unusual solution.
- If the lines are parallel to each other, they will never intersect. The terms will cancel out, and your equation will simplify to a false statement (such as ), according to Dr. Bañuelos.[7] In this case, write "the lines do not intersect" or no real solution" as your answer.
- If the two equations describe the same line, they will intersect everywhere. Algebraically, the terms will cancel out, and your equation will simplify to a true statement (such as ). In this case, write "the two lines are the same" as your answer.
How to Find the Intersection of Curved Lines
-
Know how to spot a curved line equation (AKA, a quadratic equation). In a quadratic equation, one or more variables are squared ( or ), and there are no higher powers. The lines these equations represent are curved, so they can intersect a straight line at 0, 1, or 2 points.[8] The following steps in this section will teach you how to find the 0, 1, or 2 solutions to your problem.[9]
- If your equation has parentheses in it, expand it to identify whether or not it’s quadratic. For example, is quadratic, since it expands into .
- If your equation is a circle or ellipse, it’ll have both an and a term.[10]
-
Write both equations so that is alone on one side. If your equations aren’t already set up this way, you can make them so by performing the same actions on both sides of a single equation.[11]
-
For example, let’s say we want to find the intersection of and :
- Rewrite the quadratic equation in terms of , to end up with and .
- This example has one quadratic equation and one linear equation. Problems with two quadratic equations are solved in a similar way
-
For example, let’s say we want to find the intersection of and :
-
Combine the two equations and set them equal to each other to cancel out . Once you've set both equations equal to , you know the two sides without a are equal to each other. Take the non- sides of each equation and put an equals sign between them to create one equation, instructs Dr. Bañuelos.[12]
- For example, with and , we’ll set them equal to each other to end up with .
-
Arrange the new equation so that one side is equal to zero. Use standard algebraic techniques to get all the terms on one side, leaving the other side with zero. This will set the problem up so we can solve it in the next step.
-
As an example, we’re starting with this equation: .
- Subtract from each side: .
- Subtract from each side: .
-
As an example, we’re starting with this equation: .
-
Solve the quadratic equation through factoring (or your preferred method). Once you've set one side equal to zero, there are three ways to solve a quadratic equation. You can use the quadratic formula, complete the square, or use the factoring method. You should use whatever method feels easiest to you.[13] If you’re unsure, we will present you with the steps to the factoring method below:[14]
- Recall that the goal of factoring is to find the two factors that multiply together to make this equation.
-
Our example equation is .
- First, we know that can divide into and . Write down to show this.
- The last term is . List each pair of factors that multiply to make negative six: , , , and .
- The middle term is (which you could write as ). Add each pair of factors together until you get 1 as an answer. The correct pair of factors is , since .
- Fill out the gaps in your answer with this pair of factors: .
-
Consider whether there might be a second solution for . Remember that you’re working with a curved line, so it’s possible to get two solutions for . If you work too quickly, you might find one solution to the problem and not realize there's a second one. Here's how to continue your factoring steps in order to find the two x-values for lines that intersect at two points:[15]
-
Continuing our example, we ended up with the equation . If either of the factors in parentheses equals , the equation is true.
- One solution is → . The other solution is → .
-
If you used the quadratic equation or completed the square to solve your equation, a square root will show up in the case of two points of intersection.
- For example, our equation becomes . Remember that a square root can simplify to two different solutions: , and .
- Write two equations, one for each possibility, and solve for x in each one.
-
Continuing our example, we ended up with the equation . If either of the factors in parentheses equals , the equation is true.
-
Recognize when there is only one or zero solutions for . Two lines that barely touch only have one intersection, and two lines that never touch have zero. Here's how to recognize these:[16]
- Is there only one solution? The problems factor into two identical factors . When plugged into the quadratic formula, the square root term is . You only need to solve one equation.
- Are there zero real solutions? There are no factors that satisfy the requirements (summing to the middle term). When plugged into the quadratic formula, you get a negative number under the square root sign (such as ). Write "no solution" as your answer.
-
Plug your x-values back into either original equation to find y. Once you have the x-value of your intersection, plug it back into one of the equations you started with. Solve for to find the y-value. If you have a second x-value, repeat for this as well.
- For example, we found two solutions: and .
- One of our lines has the equation . Plug in and , then solve each equation to find that and .
-
Write your answers in coordinate form. Record your results in coordinate form, with the x-value and y-value of the intersection points. If you have two answers, make sure you match the correct x-value to each y-value.
- In our example, when we plugged in , we got , so one intersection is at . The same process for our second solution tells us another intersection lies at . Those coordinates are our final answers!
Practice Problems and Answers
Expert Q&A
-
QuestionWhat happens if the x's cancel out?
Mario Banuelos, PhDMario Banuelos is an Associate Professor of Mathematics at California State University, Fresno. With over eight years of teaching experience, Mario specializes in mathematical biology, optimization, statistical models for genome evolution, and data science. Mario holds a BA in Mathematics from California State University, Fresno, and a Ph.D. in Applied Mathematics from the University of California, Merced. Mario has taught at both the high school and collegiate levels.
Associate Professor of Mathematics
If that happens, you'll end up with a contradiction (like 1 = 2), which means that those two lines will never intersect. -
QuestionF(x)=2^2=12x+10 , g(x)=38
Community AnswerI suspect that you copied this problem down wrong. I'll deal with what you wrote first, and then I'll talk about what I think you may have meant. As written, the first function says F(x)=2^2=12x+10. In other words, this is a simple one variable equation that simplifies to 4=12x+10. Then subtract 10 from both sides to get -6=12x. Finally, divide both sides by 12 to get -1/2 = x. You now have two different functions, each with a single variable. F(x): x=-1/2, and G(x): x=38. Any function that has only a single variable like this, x=__, is going to be a vertical straight line at that value. As a result, these two lines will never intersect, and there is no single solution for F(x) and G(x) simultaneously. That is not a very interesting solution, which makes me think you copied it wrong. I think that what you probably meant is F(x)=x^2 + 12x + 10. I think you wrote 2^2 instead of x^2, and then you changed a + symbol into an = symbol in the middle of the function. (The + and = are the same button on most keyboards.) This becomes a more interesting problem. You could now work on factoring the first function, but you don't need to do that much work. If you notice, the second function, G(x), is already solved. It is the single value, G(x)=38. This means that the graph of that function is a straight vertical line. At every point on the line, x=38. So to solve the system, just insert the value 38 for x in the first equation: F(x)=38^2+12(38)+10. This equals 1444+456+10, which is F(x)=1910. So the solution where those two graphs cross is x=38, y=1910. You can write the coordinate pair as (38,1910). -
QuestionWhen the lines intersect at (3,6), what could represent the two lines?
DonaganTop AnswererThe lines could be x = 3 and y = 6.
Video
Tips
References
- ↑ Mario Banuelos, PhD. Associate Professor of Mathematics. Expert Interview
- ↑ https://thirdspacelearning.com/us/math-resources/topic-guides/algebra/rearranging-equations/
- ↑ Mario Banuelos, PhD. Associate Professor of Mathematics. Expert Interview
- ↑ Mario Banuelos, PhD. Associate Professor of Mathematics. Expert Interview
- ↑ Mario Banuelos, PhD. Associate Professor of Mathematics. Expert Interview
- ↑ Mario Banuelos, PhD. Associate Professor of Mathematics. Expert Interview
- ↑ Mario Banuelos, PhD. Associate Professor of Mathematics. Expert Interview
- ↑ https://amsi.org.au/teacher_modules/Quadratic_Function.html
- ↑ https://amsi.org.au/teacher_modules/Quadratic_Function.html
- ↑ https://www.mathsisfun.com/algebra/circle-equations.html
- ↑ https://www.khanacademy.org/test-prep/v2-sat-math/x0fcc98a58ba3bea7:advanced-math-easier/x0fcc98a58ba3bea7:isolating-quantities-easier/a/v2-sat-lesson-isolating-quantities
- ↑ Mario Banuelos, PhD. Associate Professor of Mathematics. Expert Interview
- ↑ https://amsi.org.au/teacher_modules/Quadratic_Function.html
- ↑ https://www.khanacademy.org/math/algebra/x2f8bb11595b61c86:quadratic-functions-equations/x2f8bb11595b61c86:quadratics-solve-factoring/a/solving-quadratic-equations-by-factoring
- ↑ https://pressbooks.bccampus.ca/algebraintermediate/chapter/solve-quadratic-equations-using-the-quadratic-formula/
- ↑ https://pressbooks.bccampus.ca/algebraintermediate/chapter/solve-quadratic-equations-using-the-quadratic-formula/
- ↑ https://www.geeksforgeeks.org/maths/point-of-intersection-of-two-lines-formula/
About This Article
To algebraically find the intersection of two straight lines, write the equation for each line with y on the left side. Next, write down the right sides of the equation so that they are equal to each other and solve for x. Write down one of the two equations again, substituting the previous answer in place of x, and solve for y. These answers will give you the x and y coordinates of the intersection. To learn how to find the intersection when working with quadratic equations, keep reading!
Reader Success Stories
-
"I am preparing for the PSAT, and this concept was the one that I could not get. I spent hours working on it but went nowhere. I threw multiple fits. Finally, I stumbled upon your article and I understood it with your easy graphics and simple wording."..." more

















