Recently, 3D printing techniques gained much attention in solid dosage form production. Even though the methods are increasingly studied, there are still many challenges in establishing an accurate content of active ingredients in the final products. In the present study, new experimental design techniques and statistical software were developed to identify and optimize a formula to predict the mass of the tablet to be 3D printed before it actually is. The first step was to develop a virtual 3D object in the FreeCad Software, then, using a CURA slicer software, the G-code Format was obtained. The tablets were printed using a Cartesian 3D printer based on the generated data. Finally, adapting the object sequencing mode, a predicted drug mass value was obtained. As expected, the oblong tablet's scaling directly influences its mass. The software generates a correlation coefficient (r) of 0.84, confirming the directly proportional relationship between scaling and tablet weight. However, the r values progressively decreased, indicating a poor correlation between tablet weight and other factors: infill density percent (r = 0.403) and wall thickness (r = 0.185). After repeating the 3D printing with the values suggested by the software, tablets with a practical value of 1066 mg were obtained. Considering that the confidence interval calculated is [834.95—1165.05] and the experimental value is 1066 mg, it can be certified that the proposed model is valid.