Learning Center / Algebra

Find x: how to solve for x in equations, angles and triangles

The questions that say “find x” — equations, angles on a line, triangle angles, Pythagoras and similar shapes — and the one idea behind all of them.

1 min readUpdated 2 November 2026By Sumzo team (AI-assisted)Reviewed by Sumzo AI (owner-delegated review)

When a question says “find x”, it is asking for the value that makes a statement true. In algebra that statement is an equation; in geometry it is a fact about a shape — angles on a straight line add to 180°, the sides of a right triangle obey Pythagoras. The method is the same every time: write the fact as an equation, then solve for x.

How to solve for x in an equation

Worked example

Easy: a two-step equation

Find xx if 3x+7=223x + 7 = 22.

Show the working
  1. Subtract 7 from both sides.
    3x=153x = 15
  2. Divide by 3.
    x=5x = 5
  3. Check: 3(5)+7=223(5) + 7 = 22 ✓.

Answer: x=5x = 5

Checked by Sumzo’s math engine

Find x with angles

Worked example

Medium: angles on a straight line

Three angles on a straight line are xx, 2x2x and 30°30°. Find xx.

Show the working
  1. Angles on a straight line add up to 180°.
    x+2x+30=180x + 2x + 30 = 180
  2. Collect and solve.
    3x=150⇒x=503x = 150 \Rightarrow x = 50
  3. Check: 50+100+30=18050 + 100 + 30 = 180 ✓.

Answer: x=50°x = 50°

Checked by Sumzo’s math engine

Worked example

Medium: angles in a triangle

The angles of a triangle are xx, 2x2x and 3x3x. Find xx.

Show the working
  1. The angles of a triangle add up to 180°.
    x+2x+3x=180x + 2x + 3x = 180
  2. Solve.
    6x=180⇒x=306x = 180 \Rightarrow x = 30
  3. So the angles are 30°, 60° and 90° — a right triangle.

Answer: x=30°x = 30°

Checked by Sumzo’s math engine

Find x with Pythagoras

Worked example

Hard: the hypotenuse

A right triangle has legs 6 and 8 and hypotenuse xx. Find xx.

Show the working
  1. Pythagoras: the square of the hypotenuse equals the sum of the squares of the legs.
    x2=62+82=100x^2 = 6^2 + 8^2 = 100
  2. Take the square root. A length is positive, so ignore −10-10.
    x=10x = 10

Answer: x=10x = 10

Checked by Sumzo’s math engine

Find x in similar shapes

Worked example

Hard: a proportion

Two similar triangles have matching sides 4 and 6. A side of xx in the small one matches 9 in the large one. Find xx.

Show the working
  1. Matching sides are in the same ratio.
    x4=96\frac{x}{4} = \frac{9}{6}
  2. Multiply both sides by 4.
    x=366=6x = \frac{36}{6} = 6

Answer: x=6x = 6

Checked by Sumzo’s math engine

Common mistakes

  • Using the wrong angle fact, such as 360° for a triangle.
  • Forgetting that a length can’t be negative.
  • Matching the wrong sides in similar shapes — compare sides in the same position.
  • Not checking the answer in the original statement.

Frequently asked questions

How do you solve for x?

Write the information as an equation, then undo the operations around x one at a time, doing the same to both sides, until x is on its own.

How do I find x in a triangle?

Use the angle sum (the angles add to 180°) for angles, Pythagoras for the sides of a right triangle, or ratios for similar triangles.

Is there a calculator that finds x?

Yes — the solve for x calculator isolates x (or any letter) in an equation or formula and shows each step.

Stuck on a problem? Ask Sumzo AI