White Liberals

Whites with money on the Upper West Side, in Chelsea and in brownstone Brooklyn are the Democrats’ liberal base. They have opened their wallets for Hillary Clinton — she has a 10-to-1 advantage over Bernie Sanders in contributions — and they turn out reliably.

BRONX MANHATTAN QUEENS Where Zephyr Teachout beat Gov. Andrew Cuomo in the 2014 Democratic primary for governor BROOKLYN STATEN ISLAND Ms. Teachout’s insurgency against Mr. Cuomo in the 2014 primary for governor highlighted the city’s liberal strongholds. The New York Times

Can Mr. Sanders do well enough in these precincts to peel off some delegates? Jerry Skurnik, a veteran political consultant, thinks so. “Sanders should do well in predominantly white-liberal District 10,” he said.

Black Voters

The voting center of Democratic New York in high-turnout elections is farther east, in black neighborhoods in places like central Brooklyn and southeast Queens. Mrs. Clinton has done well here in the past, even in 2008 against Barack Obama.

BRONX MANHATTAN QUEENS Where Bill de Blasio won more than 90 percent of the vote in the 2013 mayoral election BROOKLYN STATEN ISLAND Mrs. Clinton would be happy to replicate Mr. de Blasio’s huge voting margins in predominantly black precincts. The New York Times

“If Hillary Clinton were running against someone other than Barack Obama in 2008, she likely would have swept the city,” said Steven Romalewski, mapping director at the CUNY Graduate Center.

A Sanders Advantage

The most liberal Democrats in New York could be the gentrifiers in hipster Brooklyn, but there aren’t many of them.

BRONX MANHATTAN QUEENS ZIP codes where Bernie Sanders has raised more money than Hillary Clinton BROOKLYN STATEN ISLAND Congressional district borders A Bernie Belt in fund-raising, mostly in small amounts. The New York Times

Mr. Sanders raised more money than Mrs. Clinton in Williamsburg, Greenpoint and Bushwick, Brooklyn, but this territory is split among three congressional districts, making it difficult to translate votes into delegates.

Trump Territory

Donald J. Trump is ahead in polls among all groups of Republican voters, but he may perform best in parts of New York City where white Catholics, once one of the city’s most powerful voting blocs, remain numerous.

BRONX MANHATTAN QUEENS ZIP codes from which Donald J. Trump has received contributions BROOKLYN STATEN ISLAND Beyond his friends and business associates in Manhattan, donors to Mr. Trump’s campaign tend to be in conservative white areas. The New York Times

Staten Island and northeast Queens are notable for being among the limited number of places from where Mr. Trump has received campaign contributions, an indicator of strong support for a candidate who hasn’t been an aggressive fund-raiser.

Brighton Beach, where Republican voters rejected the mainstream mayoral candidate in the 2013 primary, is another potential enclave of anti-establishment Republicans.

The Republican Establishment

Republican voters on the Upper East Side tend to favor mainstream candidates, and they could be John Kasich’s best hope of scoring any delegates. They haven’t given him much money, however, having squandered millions of dollars on Jeb Bush and Marco Rubio.

BRONX MANHATTAN QUEENS Where more than 20 percent of voters are registered Republicans BROOKLYN STATEN ISLAND The New York Times

In fact, not one of the Republican candidates still in the race has raised much money in New York.

Hope for Cruz in Brooklyn

Orthodox Jews in Brooklyn are Ted Cruz’s best bet in New York. Many are in southern Brooklyn, dispersed among several congressional districts.

BRONX MANHATTAN QUEENS Where Mitt Romney beat Barack Obama in 2012 BROOKLYN STATEN ISLAND Congressional district borders Outside Staten Island, much of the anti-Obama vote in 2012 came from Orthodox precincts. The New York Times

They have been known to vote as a bloc, and could be Mr. Cruz’s best hope to pick off some delegates in the city where his disparagement of “New York values” has been major tabloid fodder. Most of the anti-Obama vote in 2012 outside Staten Island was in Orthodox areas.

The Rest of the State

Long Island was very good for Mrs. Clinton in her 2008 race against Mr. Obama. Her worst county in the state was Tompkins, home to Cornell University and Ithaca College.

Tompkins County Where Hillary Clinton won more than 60 percent of the vote in the 2008 Democratic primary The New York Times