Dialysis works by filtering toxins, waste and fluid from your blood through a semipermeable membrane. The 2 types of dialysis, hemodialysis (HD) and peritoneal dialysis (PD), use different methods to filter blood.