This paper describes an algorithm for evaluation of magnetic compass deviation based
on the least squares method. An automatic system was built, coupled with a magnetic
compass recording device, for fine estimation of the deviation curve on the basis of an
incomplete compass swing circulation.