Amateur/Home Built/Experimental
Flight Crew Private
Flight Crew Last 90 Days 50; Flight Crew Total 1900; Flight Crew Type 135
Distraction; Situational Awareness
Airspace Violation All Types; Conflict NMAC
Flight Crew Took Evasive Action
Airspace Structure; Environment - Non Weather Related
As I departed I called RAL Tower to transition their airspace and they notified me that I had traffic at 12 o'clock at the same altitude. I climbed and started a turn to the left looking for the traffic. I found the traffic and notified RAL tower; as they approved my transition but notified me to call SOCAL as I had climbed into Ontario's airspace to avoid the traffic.Even though I had broke into the airspace; it should not be an issue as it was done to avoid an accident. After I had the traffic in sight I lost attitude to get out of the airspace ASAP. I did contact SoCal when I left RAL's airspace as directed by RAL.
When the pilot of a homebuilt departing RIR took evasive action to avoid traffic he inadvertently entered controlled airspace.