PA-28 Cherokee/Archer/Dakota/Pillan/Warrior
Flight Crew Commercial; Flight Crew Flight Instructor; Flight Crew Instrument
Flight Crew Last 90 Days 300; Flight Crew Total 1100; Flight Crew Type 276
Communication Breakdown; Training / Qualification
Conflict NMAC; Deviation / Discrepancy - Procedural Published Material / Policy; Deviation / Discrepancy - Procedural Clearance
Flight Crew Took Evasive Action
Human Factors
I was towards the end of a training flight with a student. We had been in the practice area performing the typical pre-solo training maneuvers. We decided to come back to the airport to practice some touch and goes. We were on our 5th touch and go; and had just announced our intentions of a full stop terminate. We turned right crosswind for Runway 17R to follow our sequence traffic at ZZZ. We leveled our wings; looked for traffic; and began our turn to downwind. Upon leveling the wings; my student said 'WOAH!' and pointed to an aircraft approximately 100 feet off our right wing at the same altitude; on a converging course. I took evasive action and pushed the yoke forward as hard as I could. The Bonanza appeared to have no idea we were there. The aircraft passed above us at no more than 10 feet; nearly hitting the top of our aircraft.I made a radio call to Tower to let them know of what had just happened. The Controller came back and asked the Bonanza 'What happened to you following the Archer?' The Bonanza pilot responded with 'I lost sight of them.' Tower told the Bonanza pilot that he needed to let them know if he lost visuals on an aircraft. We terminated the flight without further incident.After departing the airport; I called [the] Tower to inquire of what had happened. I talked to the Controller who instructed the Bonanza to follow us in the pattern. It appears that the Controller then focused his attention on the arriving aircraft. He did not catch the Bonanza turning early. The Bonanza seemed to have lost our position and rather than announcing that to Tower; he decided to just turn. I believe he had no visual reference to our aircraft in the pattern; causing a near miss.I believe that my action of taking control from my student and immediately beginning a rapid descent is the only thing that resulted in a safe outcome of this situation. If no action would have been taken; we would have collided mid-air; resulting in a very serious accident. The decision of the Bonanza pilot to turn without seeing his traffic to follow caused the situation.
PA28 flight instructor reported a near midair collision on downwind leg for landing.