Fraction addition meets algebra

How to Add Fractions with a Variable

Nothing about the adding rule ever required the numerator to be a number. The variable rides along in the numerator while the denominators keep control: find the least common denominator, rewrite both terms, then combine like terms. That is the whole method — and the tool below runs it live.

  • variables ride in numerators
  • same LCD rule
  • combine like terms
  • unlike terms stay as a sum
Start with the basics of adding fractions

Algebra addition tool

Add fractions that carry a variable

Type two terms with the same variable — the tool finds the common denominator and combines the numerators step by step.

Type the full expression

Examples: x/3 + 1/6, x/4 + x/6, 2x/5 + x/3, or 1/2 + x/8.

Derivation

x/3 + 1/6

= 2x/6 + 1/6

= (2x + 1)/6

Quick answer

Same rule, one extra move: combine like terms

  1. 1. Find the least common denominator. Exactly as with numbers: for x/3 + 1/6 it is 6. The variable never takes part in this step.
  2. 2. Rewrite both terms. Scale the whole numerator with the denominator: x/3 = 2x/6, while 1/6 stays 1/6.
  3. 3. Add and combine like terms. The numerators join over the shared denominator — 2x + 1 — and like terms merge while unlike terms stay as a sum: (2x + 1)/6.

The method: the rule never asked for numbers

Look back at the numeric rule: find a common denominator, add the numerators, keep the denominator, simplify. Not one word of it cares what the numerators are made of. A numerator can be 2, or 2x, or 2x + 1 — the denominator still counts the size of the pieces, and same-size pieces still combine by counting:

x/4 + x/6

= 3x/12 + 2x/12

= 5x/12

The only genuinely new skill is the last line: after the numerators meet, they are algebra terms, so like terms combine. Three twelfths of x plus two twelfths of x is five twelfths of x — the same counting sentence as 3 + 2 = 5, with an x riding on each count.

The tool above carries this whole chain live. Its preset problems cover the three shapes you will meet most: variable plus constant, like variable terms, and a coefficient that has to scale during the rewrite.

Combining like terms: where algebra takes over

After the rewrite, the numerators behave like any algebra expressions. Terms merge only when they are alike — same variable, same kind:

4x/15 + 3x/15 = 7x/15 (like terms merge)

4x/15 + 3/15 = (4x + 3)/15 (unlike terms keep the sum)

Both finished fractions are complete answers. (4x + 3)/15 cannot be pushed further — four x’s plus three ones is simply a sum — and writing it as a single merged term like 7x would be wrong, not just unfinished. The parentheses around a mixed numerator mark exactly where the sum lives.

Where do the coefficients come from? The rewrite. Stretching x/4 to twelfths multiplies the whole numerator by 3 — giving 3x — and that same stretch is why 2x/5 becomes 6x/15, never 2x/15. Coefficients must feel every change the denominator feels.

When the variable sits in the denominator

One case steps beyond this page’s tool: fractions like 3/x + 1/2, where the variable lives below the line. The common-denominator idea is unchanged — the shared unit is now the product of the two denominators, 2x — and each numerator is multiplied by the other fraction’s denominator:

3/x + 1/2

= 6/(2x) + x/(2x)

= (6 + x)/(2x)

Notice the pattern rather than the symbol positions: to name 3/x in units of 2x, ask “what stretches x into 2x?” — the factor 2 — and 3 × 2 = 6. To name 1/2 in units of 2x, the stretch is x itself. These algebraic fractions appear in algebra courses rather than arithmetic, and the unlike-denominators method they extend is exactly the one above.

Common mistakes with variables in fractions

  • Adding the denominators with the numerators: Seeing x/3 + 1/6 and writing (x + 1)/9 adds a variable mistake to an old one: the denominators were combined too. The rule is unchanged by the variable — find the common denominator 6 first, and 9 never enters the problem.
  • Merging terms that are not alike: After rewriting, 4x + 3x collapses to 7x because both terms count x’s — but 4x + 3 stops there. An x-term and a plain number are different kinds of quantity; the correct final form is the sum (4x + 3) over the common denominator, not a single merged term.
  • Forgetting to scale the coefficient in the rewrite: Turning 2x/5 into fifteenths multiplies the entire numerator by 3, giving 6x/15. Writing x/15 keeps the new denominator but drops the scale factor — the numerator must feel the same stretch the denominator does, or the value changes.

Worked example

Like terms merge: x/4 + x/6

x/4 + x/6 = 3x/12 + 2x/12 = 5x/12

Both numerators carry an x, so after the rewrite they are like terms: 3x + 2x = 5x. The variable never changes the denominator work — twelfths are twelfths, whether or not an x rides on top.

Worked example

Coefficients scale in the rewrite: 2x/5 + x/3

2x/5 + x/3 = 6x/15 + 5x/15 = 11x/15

The common denominator is 15. Stretching 2x/5 to fifteenths multiplies the whole numerator by 3 — giving 6x, not 2x — and x/3 becomes 5x. Like terms then merge to 11x.

Worked example

Unlike terms stay as a sum: x/3 + 1/6

x/3 + 1/6 = 2x/6 + 1/6 = (2x + 1)/6

One numerator has an x and the other does not, so 2x and 1 cannot merge. The answer keeps the sum in the numerator over the shared denominator — (2x + 1)/6 is fully finished.

Worked example

A variable below the line: 3/x + 1/2

3/x + 1/2 = 6/(2x) + x/(2x) = (6 + x)/(2x)

When the variable sits in a denominator, the same cross pattern applies: each numerator is multiplied by the other denominator. The common denominator is the product 2x, and the result is the sum (6 + x) over it.

Common questions

Adding Fractions with a Variable FAQ

Exactly like numeric fractions — the variable rides in the numerator and the denominators still control everything. Find the least common denominator, rewrite both fractions over it, then add the numerators and combine like terms. For example, x/3 + 1/6 = 2x/6 + 1/6 = (2x + 1)/6.