Background: The occurrence of specific mutations within the Hepatitis B virus (HBV) genome is associated with the progression of chronic hepatitis B infection towards more severe outcomes. Objectives: This study aimed to investigate mutational patterns in the X-gene and their influence on the outcome of chronic HBV infection (CHB) across three generations in a family. Methods: Ninety CHB patients, meeting the inclusion criteria, were recruited from cases referred to the Center of Hepatology at Golestan University of Medical Sciences between September 2020 and January 2021. The HBx gene was amplified using semi-nested PCR from serum samples and then subjected to sequencing. Results: A comparison of the sequences from CHB patients indicated that children and mothers in the two-generation group exhibited the highest similarity (79.3%) in the X-gene, with the lowest mutation rate (20.7%). The N-terminal region of the X-gene showed the highest mutation frequency in the three-generation group, including C1491G (25%), G1613T (23.9%), C1500T (43.4%), and G1658T (33.4%). The mutation rate was notably higher in HBeAg-negative patients across the three groups compared to HBe-Ag-positive CHB patients, with a statistically significant difference (P = 0.03). A1762T/G1764A mutations were observed in 15.6% of patients, and their presence showed a significant difference (P = 0.03). Additionally, in the three-generation group, a silent mutation (A1727G, 10%) and a missense mutation (A1727T, 30%) were detected. Conclusions: Specific mutational patterns in the HBx gene may be valuable in predicting clinical outcomes in CHB patients and could serve as warning indicators for increased susceptibility to hepatocellular carcinoma (HCC).