Turn-by-turn BPM data provide immediate information on the coupled optics functions at BPM locations. In the case of small deviations from the known (design) uncoupled optics some cognizance of the sources of perturbation, BPM calibration errors and tilts can also be inferred without detailed lattice modeling. In practical situations, however, fitting the lattice model with the help of some optics code would lead to more reliable results. We present an algorithm for coupled optics reconstruction from TBT data on the basis of MAD-X and give examples of its application for the Fermilab Tevatron accelerator