2004 US House election in California 17
| Candidate / ballot line | Party | Votes | % |
|---|---|---|---|
| Sam Farr | Democratic | 148,958 | 66.73% |
| Mark Risley | Republican | 65,117 | 29.17% |
| Ray Glock-Grueneich | Green | 3,645 | 1.63% |
| Joe Williams | PEACE AND FREEDOM | 2,823 | 1.26% |
| Joel Smolen | Libertarian | 2,607 | 1.17% |
| WRITEINnot a candidate | — | 75 | 0.03% |
| Total votes as reported | 223,225 |