When nearly half of your baskets are dunks, chances are you’re going to have a great shooting percentage. That’s the case with Stanford’s Josh Sharma, who led the Pac-12 through Thursday with a 66.7 shooting percentage.

Of his 70 field goals, 34 have been dunks.

The 7-foot, 230-pound senior doesn’t have enough baskets to qualify in the national rankings, but if he did, he’d have been tied for fourth in shooting percentage through Thursday.

In conference play, his accuracy is even better: 76.9.

Sharma would be the first to concede he’s not an offensive terror. His 8.5-point average is only fifth best on the team. But he also does a lot of the dirty work, averaging 5.5 rebounds, blocking a team-high 26 shots, setting screens and doing his best to clog the paint on defense.

The Cardinal, who have struggled to a 10-10 record and a 3-5 mark in conference play, hope to win their second straight when they visit Cal at 1 p.m. Sunday.

Sunday’s game Who: Stanford (10-10, 3-5 Pac-12) at Cal (5-15, 0-8) When: 1 p.m. Where: Haas Pavilion TV/Radio: ESPNU/810

Read More

The Bears (5-15) are still looking for their first Pac-12 win after eight losses, but Sharma expects a very tough game. Stanford was 4-3 against Cal during his three previous seasons. He had 12 points in 15 minutes in the last meeting between the two teams, a 76-58 Stanford win in last year’s conference tournament.

“We know they’re going to come out hungry on Sunday,” he said. “They always give us their best shot.”

Sharma also knows about the only chance the Cardinal have of making the NCAA Tournament is to win the Pac-12 tournament and get the automatic berth.

“The start of the conference hasn’t gone as well as we would have liked,” he said. “As long as we get better every day and a lot of teams start to plateau, then by the time the conference tournament comes, we know we can beat any team in the Pac-12. Our goal is to finish in the top four so we can get a first-round bye.”

Sharma is trending upward. Over his past nine games, he is averaging 10.8 points, 7.6 rebounds and 1.6 blocks, and shooting 74.1 percent.

“He’s playing the best basketball of his life right now,” head coach Jerod Haase said. “He has played with a sense of urgency consistently. For him, that had always been an issue. But whether it’s the finality of it all with his senior year or he’s just figured it out, he’s played with a great deal of passion and been consistent with his effort. He’s playing great basketball for us.”

As his college career winds down, Sharma said he hopes to play professionally, overseas if the NBA doesn’t come calling.

His father, Jayant Sharma, was born in the Bihar state of India and came to the U.S. when he was 8. Both he and Josh’s mother, Henrietta Cooper, have Ph.D.s. His father is an aerospace engineer, his mother a psychiatrist. Josh has 26-year-old twin brothers; one is in biomedical research, the other in finance.

His father is 6-4, his mother 5-11, and his brothers 6-5. “I guess I drank more milk than the others,” Josh said with a laugh.

Briefly: The team hopes to get guard Cormac Ryan, its third-leading scorer (10 ppg), back soon, if not Sunday. The freshman has missed seven games because of ankle problems. Haase said his availability for the Cal game would be a game-time decision. … Only Sharma, sophomore forward Oscar da Silva and freshman forward Jaiden Delaire have played in all 20 games.

Tom FitzGerald is a San Francisco Chronicle staff writer. Email: tfitzgerald@sfchronicle.com Twitter: @tomgfitzgerald