The man accused of slaughtering 22 people at a Walmart in El Paso is being kept in a single cell — away from other inmates, according to officials.

Patrick Crusius, 21, allegedly targeted “Mexicans” during his Aug. 3 rampage and a number of the inmates at the El Paso County Jail, where he’s being held, are Hispanic.

Sheriff spokeswoman Chris Acosta told The Post that Crusius, who is white, is being segregated from everyone else.

He is not on suicide watch — but is “being monitored like any other inmate consistent with the Texas Commission on Jail Standards,’ Acosta said.

It’s unclear how long authorities plan to keep him away from the other inmates.

The US Attorney’s Office is weighing federal hate crime and domestic terrorism charges against Crusius, who allegedly penned a racist, hate-filled manifesto that talked about Hispanics “invading” Texas.

He is accused of killing 22 people and wounding 25 others. Cops said the young man admitted to targeting “Mexicans” during police interviews.