— The Internet of Things (IoT) has transformed the way people live their lives by enabling data exchange between pervasive devices in various applications. However, clock synchronization is essential to ensure seamless transmission and synchronization among IoT entities involved in processing and communication. In this paper, we propose a clock synchronization algorithm based on linear quadratic regression to address synchronization errors in IoT applications. The algorithm uses a linear model of skew and offset to estimate clock parameters, and performance is evaluated in terms of Root Mean Square Error (RMSE) and R-Square Error. Our proposed algorithm outperformed traditional algorithms with an RMSE of 0.379% and an R-Square Error of 0.71%. We also evaluated the stability of the proposed model using the correlation coefficient, which indicated a high correlation between the variables at 86%. These results demonstrate the effectiveness of our proposed algorithm in addressing clock synchronization errors for IoT applications.