Estimation of ore grade is very important for the value evaluation of ore deposits, and it directly affects the development of mineral resources. To improve the accuracy of the inverse distance weighting (IDW) method in ore grade estimation and reduce the smoothing effect of the IDW method in grade estimation, the weight calculation method involved in the IDW method was improved. The length parameter of the ore sample was used to calculate the weight of the IDW method. The length of the ore samples was used as a new factor of the weighting calculation. A new method of IDW integrated with sample length weighting (IDWW) was proposed. The grade estimation of Li, Al, and Fe in porcelain clay ore was used as a case study. A comparative protocol for grade estimation via the IDWW method was designed and implemented. The number of samples involved in the estimation, sample combination, sample grade distribution, and other factors affecting the grade estimation were considered in the experimental scheme. The grade estimation results of the IDWW and the IDW methods were used for comparative analysis of grades of the original and combined samples. The estimated results of the IDWW method were also compared with those of the IDW method. The deviation analysis of the estimated grade mainly included the minimum, maximum, mean, and coefficient of variation of the ore grade. The estimation effect of IDWW method was verified. The minimum deviations of the estimated grade of Li, Al, and Fe were between 9.129% and 59.554%. The maximum deviations were between 4.210 and 22.375%. The mean deviations were between − 1.068 and 7.187%. The deviations in the coefficient of variation were between 3.076 and 36.186%. The deviations in the maximum, minimum, mean, and coefficients of variation of the IDWW were consistent with those of the IDW, demonstrating the accuracy and stability of the IDWW method. The more the samples involved in the estimation, the greater the estimation deviations of IDW and IDWW methods. The estimated deviations of Li, Al, and Fe were affected by the shape of the grade distribution, when the same estimation parameters were used. The grade distribution pattern of the samples significantly influenced the grade estimation results. The IDWW method offers significant theoretical advantages and addresses the adverse effects of uneven sample lengths on the estimates. The IDWW method can effectively reduce the smoothing effect and improves the utilization efficiency of the original samples.