BERKELEY, Calif. (AP) Jared Goff overcame a sluggish start to pass for six touchdowns and 453 yards to help California beat Oregon State 54-24 on Saturday night and end the Golden Bears' four-game losing streak.

Goff misfired Cal's first two drives but bounced back nicely while helping Cal get the much-needed victory that makes Sonny Dykes' team bowl eligible for the first time since 2011.

The Bears' career leader in nearly every passing category, Goff completed 26 of 37 passes while helping Cal (6-4, 3-4 Pac-12) pile up a school-record 760 yards in offense.

More from FoxSports

Redshirt freshman quarterback Nick Mitchell threw for two touchdowns and ran in another for Oregon State before getting knocked out of the game late in the third quarter.

The Beavers (2-8, 0-7) have lost seven straight.

Goff, who had sub-par performances in back-to-back losses to USC and Oregon, completed only one of his first five attempts - two of which were dropped - before engineering three long touchdown drives in the first half.

Goff threw a 4-yard touchdown to Kenny Lawler, completed a 51-yard pass to help set up Vic Enware's 1-yard scoring run, then got a big lift from seldom-used running back Tre Watson on Cal's third touchdown.

Watson caught a short pass from Goff in the left flat, cut back across the field then raced down the sidelines and broke two tackles on his way to the end zone to complete the 45-yard score.

Goff padded his total in the third quarter with a pair of touchdown passes to Maurice Harris, from 13 and 29 yards, to push the Bears lead to 44-18. He rounded out his night with an 11-yard scoring toss to 300-pound, freshman halfback Malik McMorris in the fourth.

It's the seventh time in his career that Goff has thrown at least four touchdown passes, and the third in which he has five or more.

The six touchdown passes in regulation tie Goff's school record. He had seven in a double-overtime win against Colorado on Sept. 27, 2014.

Matt Anderson added two field goals in the Bears' highest scoring game since a season-opening 73-14 win over Grambling State.

Cal needed it to pull out of its monthlong tailspin.

Oregon State, which hadn't lost at Memorial Stadium since 1997, couldn't keep up.

Mitchell, making his fourth start in place of injured Seth Collins, threw a 29-yard touchdown pass to Jordan Villamin just before the half to pull the Beavers within 24-10 before Cal pulled away in the third quarter.

It was a rough night all around for Mitchell, who was knocked out of the game following a helmet-to-helmet hit by Cal linebacker Jalen Jefferson. Mitchell had just thrown a 3-yard touchdown pass to Noah Togiai when he was hit.

-----

AP college football site: http://collegefootball.ap.org