A simple and efficient algorithm for least-squares estimation of the parameters of a numerically solved diffusion model is presented. The algorithm has been specially developed for the analysis of data obtained by vitreous fluorophotometry (a method in clinical eye research), but it has several straightforward generalizations which are also outlined in the paper.