This study developed a level detection equipment which is used in computer numerical control (CNC) machine tool to determine the impact of leveling accuracy on rectilinear motion accuracy. When the CNC precision machine tool has accuracy deterioration under external load or internal stress, mainly caused error is leveling error, this research and development equipment can immediate to analyze and measurement. The allowable error of leveling accuracy can be obtained after experimental validation. The kinematic error relatively increases with leveling error. When the leveling accuracy is within the allowable error, the kinematic error relatively decreases. The main kinematic error items measured in this study include EXX, EBY, EAX, and EYY. The level detection equipment is developed in this study, and the fuzzy regression analysis is used for modeling. The model that has high accuracy in the test of the
X
-axis is
R
2
=
0.9764
and
P
=
0.0506
, and
Y
-axis is
R
2
=
0.9756
and
P
=
0.0524
. In terms of filtering, Kalman filtering is used for signal processing, the measured values and
X
-axis and
Y
-axis after filtering are improved by 94.1% and 86.2%, respectively, the repeatability of this system is about A grade capability of precision (Cp), resolution is ±0.0001°, and the stability is at least B grade capability of accuracy (Ca). This equipment has the advantages of low cost, high precision, and 2-axis measurement. This machine tool which has the straightness increases with
X
and
Y
axes’ leveling accuracy errors, when the
X
/
Y
leveling accuracy is within ±0.01 mm/m, and there is the best straightness and conforms to the ISO230 standard (Lee et al., 2020).