San Rafael is a canton in the Heredia province of Costa Rica. The head city is in San Rafael district.
San Rafael was created on 28 May 1885 by decree 10.
San Rafael has an area of and a mean elevation of metres.
The canton is northeast of the provincial capital city of Heredia, reaching from the suburbs high into the Cordillera Central (Central Mountain Range).
The canton of San Rafael is subdivided into the following districts:
For the 2011 census, San Rafael had a population of inhabitants.
The canton is covered by the following road routes: