Small Aircraft
Flight Crew Commercial; Flight Crew Flight Instructor; Flight Crew Instrument
Communication Breakdown; Distraction; Situational Awareness; Workload
Conflict Airborne Conflict; Conflict NMAC; Deviation - Track / Heading All Types
Air Traffic Control Issued New Clearance; Air Traffic Control Provided Assistance; Air Traffic Control Separated Traffic; Flight Crew Took Evasive Action
Human Factors
Flight crew for this flight; which was my student and I; were flying traffic normally without missing radio call; looking for traffic the entire time. At the moment [the student] had flight controls turning crosswind to downwind; we received TRAFFIC ALERT on our PFD. First; we thought traffic [was] coming in from [an] Arrival; we see nothing; check our screen; and the aircraft behind us; Aircraft Y; cuts us off by 100 ft. [We] turn into downwind. I took controls of flight and quickly executed a steep turn and climb to the left to avoid collision. Tower says 'Aircraft Y; you cut off the traffic you were supposed to be following.' I made a left 360 to rejoin downwind for XXR. After I see [the] aircraft land; I would think [they] would make a full stop and taxi back to runway and prior to landing. I noticed that it was a solo student; [they were] not Private solo; did not see any instructor out in the runway environment. Once we landed; I advised [FBO staff] of incident.Before sending out solos please make sure that their situational awareness is good; and they can look for traffic on their own. It was only my flight crew and this solo in this traffic pattern.
Flight Instructor reported an NMAC while in the traffic pattern.