Cal11 calculator

Equation of A Line with The Following Intercepts Calculator

Reviewed by Calculator Editorial Team

This calculator helps you find the equation of a line when you know its x-intercept and y-intercept. The result is given in both slope-intercept form (y = mx + b) and standard form (Ax + By = C).

How to Use This Calculator

To find the equation of a line using its intercepts:

  1. Enter the x-intercept value in the first input field
  2. Enter the y-intercept value in the second input field
  3. Click the "Calculate" button
  4. View the results in both slope-intercept and standard forms
  5. See the line plotted on the graph

The calculator will automatically handle the calculation and display the equation in the most common forms used in mathematics.

The Formula Explained

The equation of a line can be determined using its intercepts with the axes. The general form is:

y = mx + b

where:

  • m is the slope of the line
  • b is the y-intercept

When you know both intercepts, you can find the slope using the two points (x-intercept, 0) and (0, y-intercept). The slope (m) is calculated as:

m = (y₂ - y₁) / (x₂ - x₁) = (y-intercept - 0) / (0 - x-intercept) = -y-intercept / x-intercept

Once you have the slope, you can find the y-intercept (b) using one of the intercept points. Using the (0, y-intercept) point:

y-intercept = m * 0 + b → b = y-intercept

The standard form of the equation is derived from the slope-intercept form:

y = mx + b → mx - y = -b → mx - y = -b

Multiply both sides by -1 to get the standard form:

y = mx + b → mx - y = -b → mx - y = -b → y = mx + b

Worked Example

Let's find the equation of a line that has an x-intercept at (4, 0) and a y-intercept at (0, -3).

  1. Identify the intercepts: x-intercept = 4, y-intercept = -3
  2. Calculate the slope (m):
  3. m = -y-intercept / x-intercept = -(-3) / 4 = 3/4

  4. Use the slope and y-intercept to write the slope-intercept form:
  5. y = (3/4)x + (-3)

  6. Convert to standard form:
  7. y = (3/4)x - 3 → (3/4)x - y = 3

    Multiply both sides by 4 to eliminate the fraction:

    3x - 4y = 12

The equation of the line is y = (3/4)x - 3 or 3x - 4y = 12.

Frequently Asked Questions

What is the difference between slope-intercept and standard form?

Slope-intercept form (y = mx + b) is useful for graphing because it directly gives you the slope and y-intercept. Standard form (Ax + By = C) is often used for calculations and is more general. Both forms represent the same line.

Can I use negative numbers for the intercepts?

Yes, the calculator accepts both positive and negative numbers for the intercepts. The calculation will work the same way regardless of the sign of the intercepts.

What if both intercepts are zero?

If both intercepts are zero, the line passes through the origin. In this case, the equation of the line is y = mx, where m is the slope. The calculator will still work, but the standard form will be x = 0 (the y-axis).