Slope of a Line is the measure of the steepness of a line a surface or a curve whichever is the point of consideration. The slope of a Line is a fundamental concept in the stream of calculus or coordinate geometry or we can say the slope of a line is fundamental to the complete mathematics subject. The understanding of slope helps us solve many problems in mathematics, physics, or engineering.
In this article, we will learn about the slope of a line in detail, how to calculate slope of a straight line with its various methods, and also the equation for the slope of a line.
What is a Slope?
In mathematics, the slope is the measure of the steepness of a line or a surface which means the slope of a line tells us how steep a line or surface is inclined with the positive x-axis. The higher the slope of a curve or a line, the greater the amount of steepness it will show in the graph. Generally, the slope is defined in two-dimensional coordinates as the ratio of the change in the y-coordinate with respect to the change in the x-coordinate.
What is the Slope of a Line?
Similar to the general slope, the slope of a line or the slope of a straight line is the measure of the steepness of a line and is mathematically given as the ratio of the change in the y-coordinate to the change in the x-coordinate of the line. Other than this mathematical interpretation, the slope has a physical interpretation that tells us about the line that is in which direction the line will tilt.
A higher positive slope shows less tilt in the positive x direction and a lower positive slope shows a higher tilt in the positive x direction. For the negative slope, the higher the absolute value of the negative slope higher the tilt towards the negative x direction.
Formula of the slope is given by the ratio of change in the y coordinate to the change in the x coordinate, which can be written mathematically as
Slope = Change in y coordinate/Change in x coordinate = Δy/Δx

Slope of a Line
If the inclination of the line with a positive x-axis is θ, then the slope is given as follows:
m = tan θ
Slope of a Line Equation
The slope of a line is given by the equation
y – y1 = m(x – x1)
⇒ y = mx + C where m is slope and C is intercept
How to Find Slope of a Line?
There are various methods to determine the slope of a line, which can be used appropriately on the basis of the given conditions. These methods are:
- Calculation of Slope between Two Points
- Calculation of Slope from Graph
- Calculation of Slope from Table
Calculation of Slope Between Two Points
If the given points are (x1, y1) and (x2, y2) then the slope of a line passing through both points is given by:
[Tex]\bold{\text{Slope} = \frac{y_2 – y_1}{x_2 – x_1}}
[/Tex]

Example: Find the point of the slope if points are (4, 2) and (8, 12).
Solution:
Given:
Point A (4,2) and point B (8,12)
Coordinate x1 and y1 is 4 and 2
Coordinate x2 and y2 is 8 and 12
Thus, [Tex]m=\frac{(y_2-y_1)}{(x_2-x_1 )}
[/Tex]
⇒ m = (12 – 2)/(8 – 4)
⇒ m = 10/4 = 2.5
Calculation of Slopes from Graph
Calculation of the slope from a Graph can be achieved using the following steps:
Step 1: Mark two points on the line with their coordinates.
Step 2: Use the Formula for the Slope between two points to calculate the slope.
Example: Find the slope of the following line in the graph.
Solution:
We have to find Δx and Δy (change in x and change in y)
So, change in Δx is 6 and change is Δy -3
Now slope m is given as follows:
m = Δy/Δx
⇒ m = 6/-3 = -2
Calculation of Slope from Table
Calculation of the Slope from the Table can be done using the following steps:
Step 1: Choose two values of x and its corresponding values of y from the table.
Step 2: Calculate the change in x value and change in y value.
Step 3: Calculate the slope using the formula, Slope = change in y-values/change in x-values.
Example 1: Calculate the slope between x = 1 and x = 3 of the following table.
x-value
| y-value
|
---|
1
| 5
|
2
| 7
|
3
| 9
|
4
| 11
|
5
| 13
|
Solution:
Change in x-values = 3 – 1 = 2
Change in y-values = 9 – 5 = 4
As we know, Slope = change in y-values/change in x-values
⇒ Slope = 4/2 = 2
So, the slope between x=1 and x=3 in this table is 2.
Example 2: Calculate the slope of the following table.
Solution:
Identify change in each consecutive pair of y so change in the y is 5, 5 and 5.
Identify change in each consecutive pair of x so change in the x is 1, 1 and 1.
Now writing the ratio using slope formula 5/1, 5/1 and 5/1.
So, slope from table is 5.
Positive and Negative Slope
A line is said to have a positive slope if it is making less than the right angle with the positive x-axis and a line is said to have a negative slope if it makes more than the right angle with the positive x-axis.
In other words, a line with a positive slope looks tilted forward in the direction of the positive x-axis, and a line with a negative slope looks tilted backward in the direction of the negative y-axis.
Slopes of Different Lines
There can be various different lines that can be named such as:
- Horizontal Line
- Vertical Line
- Perpendicular Lines
- Parallel Lines
Let’s discuss the Slope of these various different lines as follows:
Slope of Horizontal Line
The line that is parallel to the x-axis is called a horizontal line and the slope of a Horizontal Line is 0 as there is no change in the y-coordinate throughout the line for any change in the x-coordinate. Since the slope of the Horizontal Line is Zero, it is also called a Zero Slope line. Thus mathematically we can represent this as:
Slope of Horizontal Line = 0/change in x-coordinate = 0
Slope of Vertical Line
The line parallel to the y-axis is called a vertical line and the slope of a Vertical Line is not defined as there is no change in the x-coordinate throughout the line for any change in the y-coordinate. The Vertical Line is also called Undefined Slope Line. Thus mathematically we can represent this as:
Slope of Vertical Line = Change in y-coordinate/0 = Not Defined
Slope of Perpendicular Lines
The slope of Perpendicular Lines are inversely proportional to each other and their product is -1. In other words, if we have two lines with slopes m1 and m2, then the condition for those two lines to be perpendicular is:
m1 = -1/m2
OR
m1 × m2 = -1
Slope of Parallel Lines
The slope of Parallel Lines is the same as both the lines are at the same inclined with the positive x-axis. In other words, if the slope of one line is m then the slope of a line parallel to that line is also m.
The equation of a line in the slope-intercept form is given as follows:
y = mx + c
Where,
- m is the slope of the line
- c is the y-intercept cut by the line
Equation of Line Using Slope
If a line is passing through a point (x1, y1) and its slope is m, then the equation of a line is given as follows:
y – y1 = m(x – x1)
Where x and y represent all the coordinates of the line.
We can also write the same equation using the two points from which the line is passing. If the line passes through (x1, y1) and (x2, y2) then its equation is given by:
[Tex]\bold{y – y_1 = \frac{y_2 – y_1}{x_2 – x_1}\cdot \left(x – x_1\right)}
[/Tex]
Example 1: Find the equation of a line given in the graph.
Solution:
Slope of the graph is, m = 8/2 = 4
and we know the equation of line passing through (x1, y1) with slope m is given by
y – y1 = m (x – x1)
Thus, equation of line (4,2) with slope 4 is
y – 2 = 4 (x – 4)
⇒ y – 2 = 4x – 16
⇒ y = 4x – 16 +2
⇒ y = 4x – 14
Example 2: Find the equation of the line given in the graph.
Solution:
Two given points (x1, y1) and (x2, y2) are A (2,3) and B (5,7)
[Tex]y-y_1= \frac{(y_2-y_1)}{(x_2-x_1)}\times (x-x_1 )
[/Tex]
⇒ y-3= {(7 -3)/(5-2)} (x-2)
⇒ [Tex]y-3= \frac{(7-3)}{(5-2)}\times (x-2)
[/Tex]
⇒ [Tex]y-3= \frac{(4)}{(3)}\times (x-2)
[/Tex]
⇒ 3y-9 = 4x-8
⇒ 3y = 4x+1
Equation of the line whose length of the perpendicular from the origin is p and the angle made by the perpendicular with the positive x-axis is given by α is given by:
x cos α + y sin α = p
This is known as the normal form of the line.
In the case of the general form of the line Ax + By + C = 0 can be represented in normal form as:
[Tex]\bold{A cos α + B sin α = – p}
[/Tex]
From this we can say that [Tex]\cos α = \frac{-p}{A}
[/Tex] and [Tex]\sin α = \frac{-p}{B}
[/Tex]
Also, it can be inferred that,
[Tex]cos2α + sin2α = \frac{(p)}{(A)}^{2}+ \frac{(p)}{(B)}^{2}
[/Tex]
⇒ [Tex]1 = p^{2} \frac{(A^2 + B^2)}{(A^2. B^2)}
[/Tex]
⇒ [Tex]p=\frac{A.B}{\sqrt{A^{2} + B^{2}}}
[/Tex]
From the general equation of a straight-line Ax + By + C = 0, we can conclude the following:
- Slope is given by -A/B, given that B ≠0.
- x-intercept is given by -C/A and the y-intercept is given by -C/B.
- It can be seen from the above discussion that:
- [Tex]p=±\frac{A.B}{\sqrt{A^{2} + B^{2}}}[/Tex]
- [Tex]cosα=±\frac{B}{\sqrt{A^{2} + B^{2}}}[/Tex]
- [Tex]sinα=±\frac{A}{\sqrt{A^{2} + B^{2}}}[/Tex]
- If two points (x1, y1) and (x2, y2) are said to lie on the same side of the line Ax + By + C = 0, then the expressions Ax1+ By1 + C and Ax2 + By2 + C will have the same sign or else these points would lie on the opposite sides of the line.
Angle between Two Lines
When two lines with slopes m1 and m2 intersect they form angles. The relation between the slope of the intersecting lines and the angle so formed is given as follows:
tanθ = [Tex]|\frac{m_2-m_1}{1+m_2*m_1}|
[/Tex]
if [Tex]|\frac{m_2-m_1}{1+m_2*m_1}|
[/Tex] > 0, acute angle is formed between the lines
if [Tex]|\frac{m_2-m_1}{1+m_2*m_1}|
[/Tex]< 0, obtuse angle is formed between the lines
Read More,
Sample Problems on Slope of a Line
Problem 1: Find the slope of points (1,2) and (2,3).
Solution:
As slope is given as m = (y2 – y1)/(x2 – x1)
⇒ m = (3 – 2)/(2 – 1)
⇒ m = 1
Problem 2: Find the value of x if the slope is 2 and points are (2,2) and (x,6).
Solution:
m = (y2 – y1)/(x2 – x1)
⇒ 2 = (6 – 2)/(x – 2)
⇒ 4 = 2(x-2)
⇒ x-2 = 2
⇒ x = 4
Problem 3: Find the value of y if slope is 3 and points are (2,13) and (4, y).
Solution:
m = (y2 – y1)/(x2 – x1)
⇒ 3 = (y – 13)/(4 – 2)
⇒ y – 13 = 3(2)
⇒ y – 13 = 6
⇒ y = 6 + 13 = 19
Problem 4: Find the line passing from coordinates (2,5) and the slope of a line is 5.
Solution:
Slope m = 4
y – y1= m (x – x1)
We know slope m = 5 and point (x1, y1) = (2,5)
Now putting these value in equation
⇒ y – 5 = 5 x (x – 2)
⇒ y – 5 = 5x – 10
⇒ y = 5x – 10 + 5
⇒ y = 5x -5
Similar Reads
CBSE Class 11 Maths Notes
CBSE Class 11 Maths Revision Notes have been designed in the most basic and detailed format possible, covering nearly all domains such as differential calculus, arithmetic, trigonometry, and coordinate geometry. We know how hard it gets when you shift to an altogether new grade where subjects are no
15+ min read
Chapter 1: Sets
Representation of a Set
Sets are defined as collections of well-defined data. In Math, a Set is a tool that helps to classify and collect data belonging to the same category. Even though the elements used in sets are all different from each other, they are all similar as they belong to one group. For instance, a set of dif
7 min read
Types Of Sets
In mathematics, a set is defined as a well-defined collection of distinct elements that share a common property. These elementsâ like numbers, letters, or even other sets are listed in curly brackets "{ }" and represented by capital letters. For example, a set can include days of the week. The diffe
13 min read
Universal Sets
Universal Set is a set that has all the elements associated with a given set, without any repetition. Suppose we have two sets P = {1, 3, 5} and Q = {2, 4, 6} then the universal set of P and Q is U = {1, 2, 3, 4, 5, 6}. We generally use U to denote universal sets. Universal Set is a type of set that
6 min read
Venn Diagram
Venn Diagrams are used for the visual representation of relationships as they provide a clear, visual method for showing how different sets intersect, overlap, or remain distinct. They are essential tools in mathematics and logic for illustrating the relationships between sets. By employing intersec
15 min read
Operations on Sets
Sets are fundamental in mathematics and are collections of distinct objects, considered as a whole. In this article, we will explore the basic operations you can perform on sets, such as union, intersection, difference, and complement. These operations help us understand how sets interact with each
15+ min read
Union of Sets
Union of two sets means finding a set containing all the values in both sets. It is denoted using the symbol 'âª' and is read as the union. Example 1:If A = {1, 3. 5. 7} and B = {1, 2, 3} then AâªB is read as A union B and its value is,AâªB = {1, 2, 3, 5, 7} Example 2:If A = {1, 3. 5.7} and B = {2, 4}
13 min read
Chapter 2: Relations & Functions
Chapter 3: Trigonometric Functions
Chapter 4: Principle of Mathematical Induction
Chapter 5: Complex Numbers and Quadratic Equations
Complex Numbers
Complex numbers are an essential concept in mathematics, extending the idea of numbers to include solutions for equations that don't have real solutions. Complex numbers have applications in many scientific research areas, signal processing, electromagnetism, fluid dynamics, quantum mechanics, and v
13 min read
Algebra of Real Functions
The algebra of real functions refers to the study and application of algebraic operations on functions that map real numbers to real numbers. A function can be thought of as a rule or set of rules which map an input to an output knows as its image. It is represented as x ⢠Function ⢠y. A real funct
5 min read
Algebraic Operations on Complex Numbers
A complex number is a number that includes both a real and an imaginary part. It is written in the form: z = a + bi Where: a is the real part,b is the imaginary part,i is the imaginary unit, satisfying i2 = â1. Algebraic operations on complex numbers follow specific rules based on their real and ima
8 min read
Polar Representation of Complex Numbers
Complex numbers, which take the form z = x + yi, can also be represented in a way that highlights their geometric properties. This alternative representation is known as the polar form. The polar representation of a complex number expresses it in terms of its magnitude (modulus) and direction (argum
10 min read
Absolute Value of a Complex Number
The absolute value (also called the modulus) of a complex number z = a + bi is its distance from the origin in the complex plane. It is denoted as â£z⣠and is given by the formula: [Tex]|z| = \sqrt{ (a2 + b2)}[/Tex] Where: a is the real part of z,b is the imaginary part of z,The square root operation
7 min read
Conjugate of Complex Numbers
In the world of mathematics, complex numbers are one of the most important discoveries by mathematicians as they help us solve many real-life problems in various fields such as the study of electromagnetic waves, engineering, and physics. The Conjugate of a Complex Number is also a complex number ob
7 min read
Imaginary Numbers
Imaginary numbers are numbers as the name suggests are the number that is not real numbers. All the numbers real and imaginary come under the categories of complex numbers. Imaginary numbers are very useful in solving quadratic equations and other equations whose solutions can not easily be found us
9 min read
Chapter 6: Linear Inequalities
Compound Inequalities
Compound Inequalities are the combination of two or more inequalities. These inequalities are combined using two conditions that are AND, and OR. These conditions have specific meanings and they are solved differently. The inequities in compound inequalities are individually solved using normal rule
11 min read
Algebraic Solutions of Linear Inequalities in One Variable and their Graphical Representation - Linear Inequalities | Class 11 Maths
A linear inequality is a mathematical expression involving an inequality symbol (<, >, â¤, or â¥) and a linear expression. Unlike linear equations, which give a specific solution, linear inequalities define a range of possible solutions. Example: 2x+3>5 In this case, the inequality indicates
7 min read
Graphical Solution of Linear Inequalities in Two Variables
We know how to formulate equations of different degree, and it is used a lot in real life, but the question arises, is it always possible to convert a situation into an equation? Sometimes we get statements like, the number of Covid cases per day in Delhi has reached more than 10,000. This phrase âL
8 min read
Solving Linear Inequalities Word Problems
We are well versed with equations in multiple variables. Linear Equations represent a point in a single dimension, a line in a two-dimensional, and a plane in a three-dimensional world. Solutions to linear inequalities represent a region of the Cartesian plane. It becomes essential for us to know ho
11 min read
Chapter 7: Permutations and Combinations
Fundamental Principle of Counting
Fundamental Principle of Counting is the basic principle that helps us to count large numbers in a non-tedious way. Suppose we have to guess the pin of a three-digit code so the number of ways we can guess is 1000 this can be seen as the pin can be, 000, 001, 002, ....., 999 any number between 000,
11 min read
Permutation
In Mathematics, Permutation is defined as a mathematical concept that determines the number of possible arrangements for a specific set of elements. therefore, it plays a big role in computer science, cryptography, and operations research. For example, take a set {1, 2, 3}:All Permutations taking al
15+ min read
Combinations
Combination is a way of choosing items from a set, (unlike permutations) when the order of selection doesn't matter. In smaller cases, it's possible to count the number of combinations. Combination refers to the mixture of n things taken k at a time without repetition. Example: For set S = {a, b, c}
9 min read
Chapter 8: Binomial Theorem
Chapter 9: Sequences and Series
Sequences and Series
A sequence is an ordered list of numbers following a specific rule. Each number in a sequence is called a "term." The order in which terms are arranged is crucial, as each term has a specific position, often denoted as anâ, where n indicates the position in the sequence. For example: 2, 5, 8, 11, 14
7 min read
General and Middle Terms - Binomial Theorem - Class 11 Maths
Binomial theorem or expansion describes the algebraic expansion of powers of a binomial. According to this theorem, it is possible to expand the polynomial "(a + b)n" into a sum involving terms of the form "axzyc", the exponents z and c are non-negative integers where z + c = n, and the coefficient
7 min read
Arithmetic Series
An arithmetic series is the sum of the terms of an arithmetic sequence, where an arithmetic sequence is a sequence of numbers in which the difference between consecutive terms is constant. Or we can say that an arithmetic progression can be defined as a sequence of numbers in which for every pair of
5 min read
Arithmetic Sequence
An arithmetic sequence or progression is defined as a sequence of numbers in which the difference between one term and the next term remains constant. For example: the given below sequence has a common difference of 1. 1 2 3 4 5 . . . n â â â â â . . . 1st 2nd 3rd 4th 5th . . . nth Terms The Arithme
8 min read
Geometric Progression or GP
Geometric Progression (GP) is a sequence of numbers where each term after the first is found by multiplying the previous term by a constant called the common ratio. For Example, The given below sequence forms a GP with a common ratio of 2 1 2 4 8 16 . . . nâ â â â â . . . 1st 2nd 3rd 4th 5th . . . n
11 min read
Geometric Series
In a Geometric Series, every next term is the multiplication of its Previous term by a certain constant, and depending upon the value of the constant, the Series may increase or decrease. Geometric Sequence is given as: a, ar, ar2, ar3, ar4,..... {Infinite Sequence}a, ar, ar2, ar3, ar4, ....... arn
3 min read
Arithmetic Progression and Geometric Progression
Arithmetic Progression and Geometric Progression: The word "sequence" in English means a collection of some numbers or objects in such a way that it has a first member, a second member, and so on. Sequences can be of anything, for example. - January, February, .... is the sequence of months in a yea
11 min read
Special Series in Maths - Sequences and Series | Class 11 Maths
Special Series: A series can be defined as the sum of all the numbers of the given sequence. The sequences are finite as well as infinite. In the same way, the series can also be finite or infinite. For example, consider a sequence as 1, 3, 5, 7, ⦠Then the series of these terms will be 1 + 3 + 5 +
10 min read