When it comes to raising a baby, not all states are created equal.

According to a new study by WalletHub, a personal finance social network, New York is one of the worst states in America to have a baby in.

The Empire State is ranked the seventh worst state to have a baby, out of a list of 51 states, which includes the District of Columbia.

The study was meant to "enlighten parents on the costs and conditions they can anticipate with respect to where they live," according to WalletHub's website.

In order to give couples an idea of what they're getting into when it comes to parethood, WalletHub identified 22 metrics relevant to the budget, health care and baby-friendliness of a state.

One of New York's biggest downfalls: child care.

The state joined Indiana, North Dakota, West Virginia and Utah on a list of states with the lowest number of child centers per capita.

It should come as no shock that New York was also listed as one of the most expensive states to raise a child in. The costs to take care of a baby in New York are four times higher than Mississippi.

Regardless, raising a child is going to be expensive.

It will cost a middle-class family around $245,340 to raise a child born in 2013, a recent report by the U.S. Department of Agriculture predicted.

"In today's economy, it's important to be prepared with as much information as possible when planning for the future," USDA food, nutrition and consumer services under secretary Kevin Concannon said in a news release. 

On the other hand, perhaps for some parents — ignorance is bliss.

Below are the 10 best and worst states to have a baby, according to WalletHub.

The 10 best states to have a baby:

1. Vermont

2. Maine

3. Oregon

4. Connecticut

5. New Hampshire

6. Wyoming

7. Iowa

8. Massachusetts

9. Alaska

10. Utah

The 10 worst states to have a baby:

1. Alabama

2. Louisiana

3. Mississippi

4. South Carolina

5. Pennsylvania

6. Nevada

7. New York

8. Georgia

9. West Virginia

10. North Carolina