Life Calculator
MAKE THE FORMULA CLEAR

Linear equations and inequalities

Solve a one-variable linear equation or inequality using exact fractions.

Start with your own numbers

Editable example

An example is filled in. Replace it with your own data to calculate.

Select the sign and enter the four coefficients; use zero for missing terms.

Loading calculator…

Choose the relation between the left and right sides.
Enter the left coefficient of x, or zero if absent.
Enter the constant on the left side, or zero if absent.
Enter the right coefficient of x, or zero if absent.
Enter the constant on the right side, or zero if absent.

Results update when inputs are complete. A plan is kept only when you save it. Inputs and results are not uploaded.

Saved plans →

Saved in this browser. Before changing devices, export a backup from My tools.

Example result

Exact solution for x

7/2

Equations show exact solutions; inequalities show a range, with endpoints included for ≤ and ≥.

Decimal approximation3.5

Worked steps

  1. Collect x terms on the left and constants on the right: (a − c)x = d − b.
  2. Divide by nonzero a − c and reduce the result to a fraction or integer.

Choose =, <, ≤, > or ≥ to compare ax+b with cx+d. Rearranging compares (a−c)x with d−b. Dividing by a negative reverses the sign; ≤ and ≥ include the endpoint. If the x coefficient cancels, compare constants to find all real solutions or none. Enter signed values of up to six integer and six decimal digits; the result is exact. Fractions, brackets, whole expressions, compound inequalities and integer-only solutions are not supported. Enter all four values, including zeros.

Method and scope

Enter all coefficients, using zero for missing terms.

Dividing by a negative number reverses an inequality; ≤ and ≥ include the boundary.

References:OpenStax: solving linear inequalities、OpenStax: one-variable linear equations、OpenStax: no and infinitely many solutions

Purpose

Solve a single one-variable equation or inequality between ax + b and cx + d using four coefficients.

Inputs

Select the comparison sign and enter all four signed coefficients, using zero when a term is absent.

Formula

Collect terms to obtain (a − c)x compared with d − b. Dividing by a negative reverses the inequality.

Example

For −2x < 6 enter −2, 0, 0, 6 and select <; dividing by −2 reverses it, giving x > −3.

Reading the result

≤ and ≥ include the boundary; < and > exclude it. Zero coefficients can mean all real numbers or no solution.

Limits

Does not parse whole expressions, brackets, fractional inputs, compound inequalities or integer-only solutions.

Keep it handy for next time

Add Linear equations and inequalities to your home screen

This icon opens this tool. Confirm installation in your browser.

  1. iPhone: Open in Safari, tap Share → Add to Home Screen, then confirm.
  2. Android: Open in Chrome and choose Install app or Add to Home screen from the menu.
  3. In an in-app browser such as LINE or Facebook, use its menu to open the page in Safari or Chrome first.

Browser options vary. A shortcut does not provide cross-device synchronization, and an installed app may have separate storage. Export a backup from My tools first. The first load requires a connection.

Checking offline data.