Ex-FBI deputy director Andrew McCabe admitted Saturday he was “confused and distracted” when he talked to investigators about alleged misconduct during a 2016 investigation of the Trump campaign.

McCabe “lacked candor” in that interview, Attorney General Jeff Sessions determined, and fired him March 16, two days before he would have been eligible for a pension.

“Some of my answers were not fully accurate,” McCabe admitted in a Washington Post op-ed, but insisted, “I did not knowingly mislead or lie to investigators.

“When asked about contacts with a reporter that were fully within my power to authorize . . . I answered questions as completely and accurately as I could,” said McCabe, who was accused of leaking material to the Wall Street Journal.

He added that when he realized that his answers “may have been misunderstood,” he tried to correct them.

“At worst, I was not clear in my responses, and because of what was going on around me may well have been confused and distracted — and for that I take full responsibility,” McCabe said, adding that his misstatements don’t justify President Trump’s “unhinged public attacks on me.”