Josh Huestis hit a key basket among his 16 points and then made a key block in the final minute as the host Stanford Cardinal (14-8 overall, 5-4 Pacific-12 Conference) held off Oregon State (11-11, 1-8) for an 81-73 victory.
Chasson Randle scored 20 points for Stanford, which has won three in a row and five of its past seven. Dwight Powell added 14 points and John Gage scored 12.
Huestis, who also had 13 rebounds, blocked a shot by Devon Collier in the final minute that helped the Cardinal stop the Beavers, who trailed by two points.
Joe Burton had 17 points and 10 rebounds for Oregon State. Roberto Nelson scored 20 points and Ahmad Starks scored 15.
Stanford made a season-high 14 3-pointers.