To simultaneously determine quercetin and rifampicin in raw material and liquid-solid formulation, a numerical technique built on spectroscopic data associated with partial least squares (PLS) multi - variate measurement is suggested in this work. Rifampicin and quercetin spectra were captured at concentrations that fell within the 2–10 µg/ml linear range for each compound. They were used to compute 25 simulated mixtures containing 16 calibration and 9 validation sets, with wavelength spacing of λ=15 nm in hydrochloric acid (0.1 M) and phosphate buffer pH-6.8. The wavelength ranges were 200 to 630 nm. Based on the validation and calibration data's (RMSE) root mean square errors, the models' appropriateness was determined. Recovery studies (%) and relative prediction errors were used to compare and contrast the analytical capabilities of various chemometric techniques. The recovery study's findings showed that this technique was successfully used to formulate pharmaceuticals without excipient interference. The suggested technique is quick, easy to use, and can be utilised as a replacement for traditional analytical tools in the formulation and quality control of pharmaceuticals.