Tool for calculating the y-intercept of a line from 2 points or from 1 point and the slope coefficient. Calculation of the intercept of the line with the y-axis.
Y-Intercept - dCode
Tag(s) : Geometry, Functions
dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!
The y-intercept is the intersection point of the function/line with the y (ordinate) axis for the abscissa value x = 0 (origin).
The general formula for finding the y-intercept of a function $ y = f(x) $ is to calculate the value of $ y $ when $ x = 0 $.
From the function expression
For any function (not necessarily affine/linear), calculate the value for $ x = 0 $. The value obtained is the y-intercept.
Example: A curve of equation $ y = 3x^2 + 1 $, with $ x = 0 $ is $ y = 3 \times 0^2 + 1 = 1 $, so $ 1 $ is the y-intercept
For an equation of a line of the plane, the equation has the form $ a x + b $ with $ b $ the y-intercept.
Example: A line of equation y=3x+4 has 4 as y-intercept
From 2 points (line only)
With 2 points, can be calculated the equation of the line (see the linear equation calculator) and thus to deduce the y-intercept (see above)
From the slope coefficient and 1 point (line only)
Knowing the slope coefficient of a line and a point, can be deduced from the equation of the line (see the linear equation calculation) and thus deduce the y-intercept (see above).
dCode retains ownership of the "Y-Intercept" source code. Any algorithm for the "Y-Intercept" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Y-Intercept" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "Y-Intercept" or any other element are not public (except explicit open source licence like Creative Commons). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.
The content of the page "Y-Intercept" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source.
Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link:
In a scientific article or book, the recommended bibliographic citation is: Y-Intercept on dCode.fr [online website], retrieved on 2025-04-16,