We study the rho resonance using lattice QCD, by computing the phase shifts for pion-pion scattering in the I=1 channel. To scan the resonance region we vary the back-to-back momentum of the pions by adjusting the extent of the lattice in one spatial direction. For this study we use three different elongations, which allows us to scan finely the resonance region and compute the phase-shifts. The resonance mass and width are extracted from a fit at two different quark masses and the data is extrapolated to the physical point. We find that the rho mass is significantly lower than the experimental one and we argue that this is the effect of neglecting the strange quark in our calculations.