CKD (adjusted OR 2.11, 95% CI 1.32-3.38), lower eGFR, lower albumin, and higher BNP were independently associated with anemia, whereas sodium-glucose cotransporter-2 inhibitor use was associated with lower odds. This evidence concerns the gene SLC5A2 and anemia.