KABUL—The top candidates in Afghanistan's presidential race—with no clear front-runner and the election five weeks away—are holding backroom discussions about forming coalitions in a bid to court the country's largest ethnic group, people close to the discussions say.

Afghan President Hamid Karzai—who is barred by term limits from running again—will step down after the April 5 election, which if successful would mark the first...