Numerous studies demonstrate a strong intrinsic relationship between the boiling and melting temperatures, among other chemical properties, of chemical compounds and pharmaceutical and their molecular structures. Using topological indices, researchers can learn more about the physical traits, chemical stability, and bioactivities of these chemical molecular structures. Topological indices on the chemical structure of chemical materials and drugs are investigated in order to make up for the absence of chemical experiments and provide a theoretical basis for the manufacture of medications and chemical materials. According to well-known degree-based topological indices, the chemical structures of drugs used to treat hepatitis (A, B, C, D, and E) are assessed in this study. The atoms are thought of as the vertices of a graph, and the borders that separate them are thought of as the edges. Using degree-based topological indices, a quantitative structure-property relationship (QSPR) investigation was conducted to predict the physical properties of 16 hepatitis medications. These topological indices link the chemical structure to specific physical characteristics, such as the surface tension of hepatitis medication molecules and molecular weight, enthalpy, boiling point, density, vapor pressure, and logP. Using their molecular structures, the study's drugs are represented as molecular graphs, and 14 topological indices are computed.