Rectangle pattern
Also called rectangle, box pattern
A pattern in which price moves sideways between a flat resistance line and a flat support line, each touched at least twice. Its direction is undecided until price breaks decisively out of the range.

- Level
- Intermediate
- Reading
- 2 min
- Sources
- 3ResearchReference
- Updated
On this page· 5 sections
Sometimes a market stops trending and bounces between two levels. On a chart the highs line up along a flat ceiling and the lows along a flat floor, and the shape between them is a rectangle[2]. People also call it a trading range, a consolidation zone or a congestion area[2].
The pattern is incomplete until price breaks out of it. StockCharts says the direction is usually not determinable beforehand, so the rectangle is a neutral pattern[2].
How it works
A rectangle needs at least two comparable reaction highs and two comparable reaction lows. They do not have to be exactly equal, but they should be reasonably close[2]. A prior trend should exist, so the rectangle counts as a pause. It is usually a continuation pattern, sometimes a top or bottom[2][3].
Duration matters. A pattern shorter than three weeks is generally considered a flag, and ideally a rectangle develops over three months[2].
Researchers have also tried to define it without eyeballing. In one study, Lo, Mamaysky and Wang counted a rectangle when five consecutive local extremes had tops within 0.75% of their average, bottoms within 0.75% of theirs, and the lowest top above the highest bottom[1].
A breakout should be judged on a closing basis. Some traders add a filter: 3% beyond the line, three days, or a volume expansion[2]. The estimated move is the rectangle’s height, applied to the breakout[2].
Example
Say a stock rises from $20 to $40 and then moves sideways for three months, with three highs near $40 and three lows near $36.
- Height: 40 − 36 = $4.
- Tolerance in the study’s terms: 0.75% of $40 is $0.30, so highs between $39.70 and $40.30 count as level.
- A 3% filter above the ceiling: 40 × 1.03 = $41.20.
- If a close at $41.50 confirms the breakout, the height projection gives 40 + 4 = $44.
Had the close come below $36 instead, the same height would be subtracted from the floor.
Watch out
- The direction is not known until the break[2].
- In that study, returns after rectangle tops and bottoms were statistically distinguishable from unconditional returns for NYSE/AMEX stocks between 1962 and 1996. The authors add that this does not necessarily imply excess trading profits[1].
- Volume gives few clues. Unlike symmetrical triangles, rectangles do not show standard volume patterns[2].
Sources
- ResearchNational Bureau of Economic ResearchFoundations of Technical Analysis: Computational Algorithms, Statistical Inference, and Empirical Implementation (Lo, Mamaysky & Wang; NBER Working Paper 7613, 2000), full textChecked November 9, 2026
- ReferenceStockCharts ChartSchoolRectangleChecked November 9, 2026
- ReferenceStockCharts ChartSchoolGlossary - RChecked November 9, 2026
