Algebra sometimes hands you an expression like this:

\cfrac{1}{1 + \cfrac{1}{1 + \cfrac{1}{x}}}.

Three fractions nested inside one another. The temptation is to stare at the whole thing and try to simplify it in one sweep. That approach almost always produces an error. The reliable move — the one that will never fail you on a JEE paper — is to start at the innermost fraction and work outward, one layer at a time.

The recognition

Any expression where a fraction appears in the numerator or denominator of another fraction is a nested fraction (also called a complex fraction or continued fraction). Common shapes:

The moment you see a fraction bar with another fraction above or below it, think: "start from the inside."

The method: collapse innermost, repeat

Step 1: identify the innermost fraction — the one with no nested fractions inside it. Simplify that fraction to a single p/q.

Step 2: substitute it back into the next-outer layer. Now that layer is a simple fraction with no nesting.

Step 3: repeat — collapse the new innermost, substitute, repeat — until the whole expression is a single fraction.

Walk through the opening example. Let E = \cfrac{1}{1 + \cfrac{1}{1 + \cfrac{1}{x}}}.

Innermost: 1 + \tfrac{1}{x} = \tfrac{x + 1}{x}. Substitute:

E = \cfrac{1}{1 + \cfrac{1}{\tfrac{x+1}{x}}} = \cfrac{1}{1 + \cfrac{x}{x+1}}.

New innermost: 1 + \tfrac{x}{x+1} = \tfrac{(x+1) + x}{x+1} = \tfrac{2x+1}{x+1}. Substitute:

E = \cfrac{1}{\tfrac{2x+1}{x+1}} = \tfrac{x+1}{2x+1}.

Three layers collapsed in three clean steps. No sign errors, no lost terms, no panic.

Simplifying a three-level nested fraction one layer at a timeA flowchart from top to bottom. The original expression one over parenthesis one plus one over parenthesis one plus one over x end parenthesis end parenthesis is shown at the top. An arrow downward labelled step one simplify innermost leads to one over parenthesis one plus one over parenthesis x plus one over x end parenthesis end parenthesis, which equals one over parenthesis one plus x over x plus one end parenthesis. A second arrow downward labelled step two combine next layer leads to one over parenthesis two x plus one over x plus one end parenthesis. A final arrow downward labelled step three invert leads to x plus one over two x plus one. 1 / (1 + 1/(1 + 1/x)) step 1: innermost 1 + 1/x = (x+1)/x 1 / (1 + x/(x+1)) step 2: 1 + x/(x+1) = (2x+1)/(x+1) 1 / ((2x+1)/(x+1)) step 3: flip divisor = (x+1) / (2x+1)
Three passes, three intermediate expressions, each of them simple enough to hold in your head. The "inside-out" order means that at every step you are only combining one ordinary fraction at a time — never trying to juggle the whole structure at once.

Why inside-out beats the alternatives

There are two main alternatives to inside-out, and both fail more often than they succeed.

Alternative 1: common-denominator-everything at once. You try to clear all the fractions by multiplying the top and bottom of the outer fraction by the lcm of everything. With one layer of nesting this is tolerable; with three layers it is a bookkeeping nightmare, and a single missed factor flips a sign.

Alternative 2: substitute symbols and then expand. You set u = \tfrac{1}{x}, v = 1 + u, w = \tfrac{1}{v}, and so on. This works in principle but introduces so many temporary variables that students lose the thread. The savings from the inside-out method is that you substitute numbers back directly — no bookkeeping.

Inside-out wins because each sub-step is just "add two fractions" or "divide one fraction by another" — operations your hand already knows. You never have to track more than one operation at a time.

Why inside-out is error-minimising: at every step, the expression you are simplifying has no nested fractions inside it, so you are doing arithmetic on ordinary p/q objects. Each step is a grade-six operation, and mistakes in grade-six operations are easier to catch than mistakes in a three-storey structure.

A worked JEE-style example

Simplify:

\frac{\tfrac{1}{a} + \tfrac{1}{b}}{\tfrac{1}{a} - \tfrac{1}{b}}.

The numerator is a small fraction: \tfrac{1}{a} + \tfrac{1}{b} = \tfrac{b + a}{ab}. The denominator is a small fraction: \tfrac{1}{a} - \tfrac{1}{b} = \tfrac{b - a}{ab}.

Now the big expression is \dfrac{(a+b)/ab}{(b-a)/ab} — a division of two fractions. Divide by flipping: \dfrac{a+b}{ab} \cdot \dfrac{ab}{b-a} = \dfrac{a+b}{b-a}.

Notice what did not happen: no common denominator of a, b, ab, ab across the whole thing; no algebraic gymnastics. Each small fraction was simplified once, and then the outer division collapsed in one flip-and-multiply step.

The continued-fraction special case

Continued fractions like 1 + \cfrac{1}{1 + \cfrac{1}{1 + \cfrac{1}{1 + \cdots}}} are the poster children for this method. You collapse them from the bottom up, one level at a time. Even with five or six levels, the arithmetic stays manageable because each step is the combination of two numbers.

Truncate at three levels: 1 + \cfrac{1}{1 + \cfrac{1}{1 + \tfrac{1}{1}}}.

The convergents of the continued fraction for the golden ratio go 1, 2, \tfrac{3}{2}, \tfrac{5}{3}, \tfrac{8}{5}, \tfrac{13}{8}, \ldots — consecutive Fibonacci ratios, approaching \varphi = \tfrac{1 + \sqrt{5}}{2}. Each fraction is produced in one line, inside-out, from the previous.

Simplify $\dfrac{1}{\tfrac{1}{x-1} - \tfrac{1}{x+1}}$

The denominator is a difference of two ordinary fractions. Collapse it first:

\frac{1}{x-1} - \frac{1}{x+1} = \frac{(x+1) - (x-1)}{(x-1)(x+1)} = \frac{2}{x^2 - 1}.

So the expression becomes \dfrac{1}{\tfrac{2}{x^2 - 1}} = \dfrac{x^2 - 1}{2}.

Two steps. Inside first (the difference of fractions), outside second (the reciprocal). No cross-contamination.

Why: if you had tried to clear denominators of the whole expression at once, you would have multiplied top and bottom by (x-1)(x+1), getting \tfrac{(x-1)(x+1)}{(x+1) - (x-1)} = \tfrac{x^2 - 1}{2}. The answer is the same, but the inside-out route explains why each piece is what it is, at every step.

What to remember

The inside-out rule is the fraction-arithmetic version of a universal principle in algebra: always make the problem smaller before you make it bigger. Collapsing the innermost fraction makes the whole expression shorter; expanding a big one makes it longer. In tough problems, the shrinking moves are the reliable ones.

Related: Fractions and Decimals · Why Do We Flip the Second Fraction When Dividing — Who Came Up With That Rule? · Fraction Multiplication Is Just Area — (2/3) × (3/4) in One Picture · Is There a Difference Between a Proper Fraction and a Fraction in Lowest Terms?