The best test to detect gallstones
is an ultrasound of the right upper abdomen.
Ct scans are less sensitive for stones but may still detect them often. Plain x-rays may also detect gallstones if they are calcified, which is rare. No test is foolproof: as often as 5% of the time, a ultrasound may miss gallstones.