The spatial resolution of silicon microstrip detectors is studied as a function of the main detector parameters and of the track angle. Several algorithms for finding the position of particle hits are presented and analysed. Analytic expressions of the spatial resolution are derived for the main algorithms. Using a Monte Carlo simulation, the spatial resolution is calculated for each algorithm and, for each detector design and track geometry, the algorithm that gives the best resolution is determined.