Browse the library

Technical analysis · Chart patterns

Rectangle chart pattern: trading ranges, breakouts and targets

How to identify a rectangle (trading range), why it has no built-in direction, how to measure the breakout target, and real rectangles that broke up, down and failed.

On this page
  1. Anatomy of a rectangle
  2. Target, stop and two ways to trade it
  3. Three real rectangles
  4. What our data says about rectangles
  5. Common mistakes
  6. Rectangles compared with similar patterns
  7. How Finabase helps you work with ranges
  8. Frequently asked questions
  9. Summary

A rectangle is a trading range drawn as a box. Price bounces between a roughly flat ceiling (resistance) and a roughly flat floor (support), touching each several times, until it finally closes outside the box. While it lasts, buyers and sellers are in balance: buyers step in at the same low price, sellers at the same high price, and neither side is willing to pay more.

Unlike a triangle or a wedge, a rectangle does not narrow, and unlike a head and shoulders it does not tilt the odds in either direction by its shape. Classical texts call it a continuation pattern, because ranges most often form as pauses in a trend, but they also note that rectangles appear at tops and bottoms. In practice the rectangle tells you where the decision levels are, and the breakout tells you which way it was decided.

This guide covers how to draw a rectangle, the measured-move target, how to trade inside and out of the range, and three real examples on US stocks: an upside breakout, a downside breakout, and a breakdown that reversed within two weeks.

Anatomy of a rectangle

Rectangles: the height of the range is the measured move (illustrative) Rectangle, upside breakout Height Resistance Support Rectangle, downside breakout Height
Rectangles with an upside and a downside breakout. The height of the range is the measured move. Prices are illustrative.
  1. A flat ceiling. Two or more highs at about the same price. Every rally into it meets enough selling to turn back.
  2. A flat floor. Two or more lows at about the same price. Every dip to it meets enough buying to turn up.
  3. A constant width. The swings stay about the same size. If they shrink, the pattern is a triangle. If both lines tilt the same way, it is a channel or a wedge.
  4. Duration. On daily charts, a few weeks to several months. Five or more alternating touches make the boundaries convincing.
  5. The breakout. A close above the ceiling or below the floor.

Rectangles overlap with other patterns. Three touches of the ceiling after an advance can be read as a triple top. Two touches of each line can be a double top or bottom. The difference lies in expectations: a triple top is read as a reversal, a rectangle as a neutral range. The levels and the breakout rule are the same.

Volume inside the range

In the classical description, volume tends to fade during a long rectangle as participants wait, and expands on the breakout. A breakout on heavy volume is considered more trustworthy than one on light volume. The Darvas box, popularized by dancer and trader Nicolas Darvas in the 1960s, is a related idea: he stacked rectangles of consolidation in rising stocks and bought breakouts above each box's top.

Target, stop and two ways to trade it

Rectangles support two different approaches, both outlined here for education only:

  • Trading the breakout. Wait for a close outside the box, enter in that direction, and use the opposite side of the box (or the broken boundary) as the stop. The measured target is the height of the range.
  • Trading the range. Buy near the floor and sell near the ceiling while the range holds, with a stop just outside the box. This works only as long as the range does. The breakout, when it comes, stops out one side.

The breakout approach accepts more false starts in exchange for catching the move once a range ends. The range approach collects small, frequent gains and occasionally takes a large loss.

Three real rectangles

The examples were found by the rules described below. The orange lines run through the first and last swing high and the first and last swing low. The shaded column marks the session the outcome was decided.

Procter & Gamble (PG), daily, Jul – Oct 2026: rectangle, upside breakout $140 $150 $160 $170 Measured target $157 — reached 2026-10-15 Breakout 2026-10-08 Aug Sep Oct
Procter & Gamble (PG), July–October 2026: a rectangle with an upside breakout that reached its target in five sessions.

Procter & Gamble, 2026: an upside breakout. From August to September 2026, PG rallied to about $148.50 three times ($148.50 on August 6, $148.36 on September 1 and $149.48 on September 28) and dipped to about $142 twice ($142.14 on August 21 and $141.86 on September 10). On October 8 it closed at $150.59, above the ceiling. The range's height of about $6.36 projected a target near $156.95, and the stock traded there on October 15, five sessions later.

McDonald's (MCD), daily, Mar – Jun 2025: rectangle, downside breakout $280 $300 $320 Measured target $292 — reached 2025-06-18 Breakout 2025-06-09 Apr May Jun Jul
McDonald’s (MCD), March–June 2025: a rectangle with a downside breakout.

McDonald's, 2025: a downside breakout. MCD spent April and May 2025 in a box: highs of $318.20, $321.78 and $321.72, lows of $305.12 and $305.01. After a slow drift down from the ceiling, the stock closed at $304.78 on June 9, just under the floor. The height projected a target of about $291.70, 4.3% lower, and the stock reached it on June 18, seven sessions later. The breakdown close was only a few cents below the floor, the kind of marginal signal many traders would have waited to see confirmed.

Wells Fargo (WFC), daily, Oct – Dec 2025: rectangle breakdown that failed $80.00 $90.00 Measured target $77.04 — Failed: closed back past $88.64 2025-12-03 Breakout 2025-11-20 Oct Nov Dec
Wells Fargo (WFC), October–December 2025: a rectangle breakdown that reversed and broke out the other way within eight sessions.

Wells Fargo, 2025: a breakdown that reversed. WFC traded between roughly $83 and $88.60 from late October to mid-November 2025, with highs of $88.50 and $88.64 and lows of $83.14, $84.04 and $82.54. On November 20 it closed at $82.40, below the floor, which projected a target near $77. The next day it traded down to $81.05, and then it turned. On December 3 it closed at $89.35, above the ceiling. A short seller who used the ceiling as a stop lost the full height of the range. A trader who treated the failed breakdown as information, and bought the move back above the ceiling, was on the right side of the next leg.

What our data says about rectangles

We searched the same 60 large US stocks and ETFs used in our other pattern tests with a 3% ZigZag, looking for five alternating swings whose upper and lower lines both changed by less than 1.5% over the pattern and stayed roughly the same distance apart. Over two years of daily bars the rules found only 10 completed rectangles with a resolved outcome. That is too few for a meaningful hit rate, so we do not publish one. Strict flatness is rare. Most ranges in real data tilt a little, and loosening the rule quickly turns rectangles into channels, triangles and wedges.

Two points held regardless of the threshold:

  • Breakouts went both ways, with no consistent bias by direction of the prior trend in our small sample.
  • Failures were often fast. Wells Fargo's reversal took eight sessions. The far side of the box is close by, which makes rectangle failures cheap to identify but frequent.

For larger samples, Bulkowski's Encyclopedia of Chart Patterns splits rectangles into "tops" and "bottoms" by the trend that precedes them and catalogs their breakouts.

Common mistakes

  • Drawing boundaries through bodies. If you have to cut through several candles to make the lines flat, the range is not as clean as it looks. Allow a small zone rather than a single price.
  • Acting on a marginal break. A close a few cents beyond the line, as with MCD, is a weak signal. Some traders require a close a set percentage beyond the line, or a second close.
  • Assuming the prior trend continues. Rectangles are called continuation patterns, but our examples broke both ways. Let the breakout decide.
  • Ignoring false breakouts. A close back inside the box after a breakout is a warning, and a move through the other side is a signal in its own right.

Rectangles compared with similar patterns

Pattern Boundaries Width Typical reading
Rectangle Flat ceiling and flat floor Constant Neutral; trade the breakout
Ascending triangle Flat ceiling, rising floor Narrowing Bullish bias
Descending triangle Falling ceiling, flat floor Narrowing Bearish bias
Rising channel Parallel lines sloping up Constant Uptrend in progress
Flag Small parallel channel Constant Short pause after a steep pole
Triple top or bottom Three tests of one boundary Roughly flat Reversal after a trend

How Finabase helps you work with ranges

Finabase does not detect rectangles automatically. Its charts give you what you need to draw and test them yourself:

Frequently asked questions

Is a rectangle bullish or bearish?

Neither by itself. It is a balance between buyers and sellers. It turns bullish when price closes above the ceiling and bearish when it closes below the floor.

How many touches does a rectangle need?

At least two on each boundary. More touches make the levels more convincing, and they also make the eventual breakout more significant, because more traders are watching the same prices.

What is the difference between a rectangle and a channel?

A rectangle's boundaries are flat. A channel's boundaries are parallel but sloped, up or down, so the range moves with the trend.

How long does it take to reach the target after a breakout?

It varies. In our examples PG took five sessions and MCD seven. Many breakouts never reach the full height, and some, like Wells Fargo's, reverse before getting close.

Summary

A rectangle is the simplest chart pattern: a flat ceiling, a flat floor, and a market that cannot decide between them. It carries no reliable bias of its own, which makes it honest. The boundaries tell you where the decision will be made and the height gives a rough objective, but only the breakout tells you the direction. Our examples covered all three outcomes: a clean upside break, a downside break that reached its target, and a breakdown that reversed and broke out the other way. Draw the box carefully, wait for a decisive close outside it, and plan for the failure as carefully as for the follow-through.

Sources and further reading

  1. Robert D. Edwards and John Magee, Technical Analysis of Stock Trends (1948; later editions revised by W.H.C. Bassetti) — rectangles as consolidation formations
  2. John J. Murphy, Technical Analysis of the Financial Markets (New York Institute of Finance, 1999) — rectangles, trading ranges and their measuring rule
  3. Thomas N. Bulkowski, Encyclopedia of Chart Patterns, 2nd edition (Wiley, 2005) — rectangle tops and bottoms
  4. Finabase chart data — daily bars for PG, MCD and WFC, 2024-10-30 to 2026-10-29; rectangles detected with the rules described on this page