The officers have been identified as Brian Law and Juan Gonzalez, according to KFSN-TV.
Authorities say the officers were responding to a multi-vehicle accident in Kingsburg when their squad car flipped over north of Sierra Street just after 6 a.m.
The accident they were responding to was initially reported in the northbound lanes, but it was actually on the southbound side. The officers were traveling in the southbound lanes when they discovered the mistake and observed a person involved in the accident on the road.
The officer who was driving tried to swerve out of the way and slammed into the guardrail, causing the vehicle the overturn.
Investigators say both officers were wearing seatbelts.
The original crash apparently occurred when a pickup truck driver fell asleep at the wheel and crashed into the center divider, the CHP said. It came to rest in the wrong direction with its lights off, setting off a chain-reaction collision.
Both accidents remain under investigation.
KFSN-TV and The Associated Press contributed to this report.