Magnetic properties of Fe
5SiB
2 and its alloys with P, S, and Co
Fe$_5$SiB$_2$ is synthesized and characterized, showing a saturation magnetization of 0.92 MA/m at 300 K and an estimated anisotropy constant $K_1$ of 0.25 MJ/m$^3$. First-principles calculations reveal that substituting P for Si in Fe$_5$SiB$_2$ switches the magnetocrystalline anisotropy from easy-plane ($-0.28$ MJ/m$^3$) to easy-axis ($0.35$ MJ/m$^3$), and further p-electron doping in Fe$_5$P$_{1-x}$S$_x$B$_2$ increases it to 0.77 MJ/m$^3$. Alloying Fe$_5$SiB$_2$ with Co, modeled via virtual crystal approximation, yields a maximum anisotropy of 1.16 MJ/m$^3$ at $x=0.3$ in (Fe$_{1-x}$Co$_x$)$_5$SiB$_2$, with a magnetic moment of 7.75$\mu_B$ per formula unit, proposing (Fe$_{0.7}$Co$_{0.3}$)$_5$SiB$_2$ as a rare-earth-free permanent magnet candidate.