General elections were held in Costa Rica on 1 April 1917. General Federico Tinoco Granados had illegally seized power in a military coup that January and stood as the sole candidate in the presidential election. The elections were widely regarded as fraudulent, with Tinoco as the only official candidate. Although former president Rafael Yglesias Castro received 259 votes, they were recorded as invalid ballots.