What a separating chimney actually means
When you see a gap open up between your brick chimney and the wall of the house, the structure is telling you something moved. Chimneys don't drift for no reason.
In most cases, the base moved. Either the footing sank on one side, or frost lifted it, or water rotted the connection holding it against the house.
This is one of the few masonry symptoms I'd call a true emergency. A brick stack can hold 3 to 7 tons of masonry over your head or over a walkway.
The good news: a gap is visible early. If you catch it and act, you often have options short of a full teardown. If you ignore it, those options disappear.
Why brick chimneys pull away
Start at the bottom. The single most common reason is a footing that can't do its job. Old chimneys were often set on shallow pads or even just packed dirt, which was fine until the soil moved.
The second big one is water. A chimney tied to the house with nails and flashing depends entirely on that flashing staying watertight. Once it leaks, the sheathing behind it rots and the connection lets go.
In cold regions, frost heave is the quiet destroyer. Water under a shallow footing freezes, swells, and jacks the chimney up a fraction of an inch each hard freeze. Multiply that over ten winters.
Soil matters more than people think. Expansive clay near the base, or a downspout dumping roof water right at the footing, will shove or wash out the support over time.
Look at the shape of the gap for a clue. A gap wider at the top usually means the base is tilting away. A gap that's even top to bottom often means the whole stack shifted.