The current trend in pharmaceutical process development and optimization is known as quality by design (QbD). This methodical approach is founded on the concept that quality should be integrated into the product from the start, rather than assessed after manufacture. In this study, we demonstrate methods to improve the process parameters for making tri-layer tablets by applying QbD principles in a methodical way. Dependent elements with high to medium impact on the process. According to the study’s results, all systems showed signs of instant release. It appears that the structure of each formulation and the properties of the polymer utilized have a significant impact on the rate and mechanism of drug release. Substantial medication release is observed in the three-layer formulations. Both the pace and mechanism of drug release are significantly affected by the tablet’s geometrical features and structure, as well as the weight and thickness of the barrier layers. While data suggested that Fickian diffusion was primarily responsible for drug release in two-layer tablets, three-layer tablets showed signs of either anomalous diffusion or erosion/relaxation. Therefore, the drug was stabilized as immediate-release directly compressible triple layered Average core weight of tri-layered tablets (mg) was 1000 for ibuprofen, 100 for placebo and 200 for ranitidine, thickness (mm) was 9.00 ± 0.3, hardness (N) was 110 ± 25, core tablet weight was 1300.000 ± 2% mg and coated tablet weight was 1325 mg. Using other moisture-sensitive medications. This study provides the foundation for future research into optimizing the properties of tablets made by direct compression.