Narrative:

I was training a student in the pattern at ZZZ in aircraft X. During our 3rd circuit; soon after leveling off and turning left downwind for runway zz at 1;000 feet AGL; an airplane; aircraft Y; suddenly appeared in front of us; from below; no more than 300 feet in front at the same altitude. This airplane I had heard cleared for takeoff after we had completed our most recent touch-and-go. I immediately took control of the airplane from my student; slowed down and notified tower that an airplane was directly ahead of us a few hundred feet away. Tower notified aircraft Y that they had turned crosswind too early and to make a right 360; to which they complied. We completed our circuit with a touch-and-go and departed the pattern to the south. As we were departing; I overheard what I assume was an instructor in aircraft Y notify tower that they'd be exiting the airplane and that a first time solo student would be taking back off.

Google
 

Original NASA ASRS Text

Title: C152 instructor reported a NMAC on downwind.

Narrative: I was training a student in the pattern at ZZZ in Aircraft X. During our 3rd circuit; soon after leveling off and turning left downwind for runway ZZ at 1;000 feet AGL; an airplane; Aircraft Y; suddenly appeared in front of us; from below; no more than 300 feet in front at the same altitude. This airplane I had heard cleared for takeoff after we had completed our most recent touch-and-go. I immediately took control of the airplane from my student; slowed down and notified tower that an airplane was directly ahead of us a few hundred feet away. Tower notified Aircraft Y that they had turned crosswind too early and to make a right 360; to which they complied. We completed our circuit with a touch-and-go and departed the pattern to the south. As we were departing; I overheard what I assume was an instructor in Aircraft Y notify tower that they'd be exiting the airplane and that a first time solo student would be taking back off.

Data retrieved from NASA's ASRS site and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.