In this work, the straightness length 300 mm measurement under nanometer uncertainty. The proposed methodology represents a process known as propagation using the assumption of small displacement which leads to solving an overdetermined linear system. The experimental studies were carried out on the capacitive sensors and electronic levels. The least squares mathematic method is apply to calculate the optimal solution. This method requires taking into account the uncertainties of the two different types of sensors leads to method of weighted least squares. The first step is to calibrate the sensors and to estimate the effect on the calculated straightness