The tree swallow forages up to above the ground singly or in groups. Its flight is a mix of flapping and gliding. During the breeding season, this is mostly within of the nest site. When it is foraging for nestlings, though, it usually goes up to from the nest, mostly staying in sight of it, and forages at a height up to . As well as being caught in flight, insects are sometimes taken from the ground, water, vegetation, and vertical surfaces.