A UV-HPLC method optimized by Box-Behnken design model was developed to determine caffeine in pharmaceutical preparations and urine samples. The chromatographic conditions followed were mobile phase: methanol/water/ citrate buffer (pH 4.6) (40:25:35, v/v/v),AcclaimTMDionex C18 column (ODS 100A˚, 5 µm; 4.6 × 250 mm),flow rate (0.9 mL min-1), column temperature (30 °C) and UV-detection wavelength (204 nm). The chromatographic variables: pH (A), % methanol fraction (B), flow rate(C) and column temperature (D) were optimized at 50 μg mL-1caffeine using BBD model. The chromatogram resulted in the asymmetry factor (1.23), theoretical plate 13,786 and retention time (5.79 min). The proposed HPLC method's greenness point was assessed byAnalytical Eco-scale and found to be 78 (as per guidelines, ranked as excellent). The linearity was ranged from2.0 to 70 µg mL-1 with coefficient of correlation (r = 0.999) and detection limit of 0.19 µg mL-1. The proposedmethod was developed successfully and applied for the assay of active caffeine in pharmaceutical preparations and urine samples. The % recovery obtained by both (proposed and reference) methods ranged from 99.98 to 100.05 % followed the compliance (100 ± 2 %) with Canadian Health Protection regulatory guidelines. The performance of the proposed method was compared with published papers and found to be acceptable and superior. The proposed method was quite effective as the reference method, and hence can be used as an alternative method for the assay of active caffeine in pharmaceutical preparations and urine samples.