Variations of the ABCB4 and ABCB11 genes affect the composition of bile and are associated with cholestasis and cholelithiasis. However, their roles in the formation of primary intrahepatic stones (PIS) remains to be elucidated. The aim of the present study was to determine whether there is an association between PIS and variations in these genes. Exon sequencing was performed in order to analyze the ABCB4 and ABCB11 genes of 176 patients with PIS and 178 healthy subjects. One mutation in ABCB4 (no. 69233, G>A) and two other mutations in ABCB11, reference single nucleotide polymorphism (rs)118109635 and rs497692, were identified in association with PIS (P<0.001, P=0.04 and P=0.02, respectively). A synonymous mutation at no. 69233 G>A was detected in exon 26 of ABCB4 in 23 heterozygous patients with PIS. This mutation was not detected in healthy individuals or in the Single Nucleotide Polymorphism Database. No. 69233 G>A in ABCB4 was not associated with altered protein expression but with a reduced rate of PIS recurrence (P=0.01). The missense mutation rs118109635 was located on exon 21 of ABCB11 and was associated with the increased expression of ABCB11 protein (P=0.032) as well as altered bile salt export pump function. Another synonymous mutation, rs497692 in exon 24 was reported to decrease ABCB11 protein expression (P=0.001). In addition, the mutations of ABCB11 were associated with preoperative jaundice (P<0.001 and P=0.03, respectively). Consistently decreased levels of ABCB11 protein were associated with recurrent episodes of cholangitis (P=0.006) and preoperative jaundice (P=0.015). By contrast, ABCB4 expression was not found to be associated with clinical manifestations of PIS.