Do gallstones affect liver function?

Gallstones are usually located in the gallbladder, intra- and extra-hepatic bile ducts, and usually do not affect liver function, but can affect liver function when obstruction or infection is more pronounced.
If the gallstones are small and do not cause bile duct obstruction. At this time, the bile duct is relatively smooth, bile can be discharged normally, and the patient himself has normal liver function and metabolism, which generally will not affect liver function.
However, the liver and gallbladder are connected, if gallstones cause purulent cholecystitis, or even gallbladder perforation, rupture, liver abscess, etc., it is easy to cause transaminase elevation and other abnormal liver function manifestations.
If gallstones enter the common bile duct from the cystic duct, causing bile duct obstruction and infection, they will also cause changes in liver function, including transaminase abnormality, bilirubin elevation, etc., and even prolonged bile duct obstruction may cause biliary cirrhosis.
In conclusion, under normal circumstances, gallstones will not affect liver function if they do not cause bile duct obstruction or secondary infection.