Diagnosis typically involves a combination of [physical examination](https://), imaging studies like ultrasound or CT scans, and laboratory tests to evaluate liver function and the composition of the ascitic fluid. A procedure called [paracentesis](https://) may be performed, where a needle is used to remove a sample of the fluid for analysis.