Coronavirus 3C-like protease (3CLpro) is found in SARS-CoV-2 virus, which causes COVID-19. 3CLpro controls virus replication and is a major target for target-based antiviral discovery. As reported by Pfizer, Nirmatrelvir (PF-07321332) is a competitive protein inhibitor and a clinical candidate for orally delivered medication. However, the binding mechanisms between Nirmatrelvir and 3CLpro complex structures remain unknown. This study incorporated ligand Gaussian accelerated molecular dynamics, the one-dimensional and two-dimensional potential of mean force, normal molecular dynamics, and Kramers' rate theory to determine the binding and dissociation rate constants (koff and kon) associated with the binding of the 3CLpro protein to the Nirmatrelvir inhibitor. The proposed approach addresses the challenges in designing small-molecule antiviral drugs.