The Hudson Valley dominated a list that looked into which New York public school districts pay teachers the most.

The average New York State teacher makes $59,270, according to NYup.com's latest review of the NYS Education Department's 2018 Personnel Master File. The website collected data and found the "50 Upstate school districts that pay teachers the most." The website considers anything above Rockland County as "Upstate."

Thirty-eight of the 50 school districts on the list are from the Hudson Valley. Below are the school districts in the Hudson Valley that made the NYUP.com list and the median salary for a teacher in that district:

#50 Kingston SD
Median: $83,494

#48 Beacon City SD
Median: $83,634

#43 Pine Bush CSD
Median: $84,440

#41 Millbrook CSD 
Median: $84,861

#40 Rhinebeck CSD 
Median: $84,938.50

#39 Middletown City SD 
Median: $84,947.50

#38 Hyde Park CSD 
Median: $85,175

#37 Minisink Valley CSD 
Median: $85,416

#36 Pine Plains CSD
Median: $85,416

#35 Poughkeepsie City SD 
Median: $85,662

#34 Fallsburg CSD
Median: $85,665

#33 Washingtonville CSD 
Median: $85,958

#32 Goshen CSD 
Median: $86,460

#29 Port Jervis City SD 
Median: $88,401

#28 Saugerties CSD 
Median: $88,712

#26 Red Hook CSD 
Median: $89,749

#25 Wappingers CSD
Median: $89,826

#24 Newburgh City CSD 
Median: $90,104.50

#23 Rondout Valley CSD 
Median: $90,787

#22 Wallkill CSD
Median: $91,611

#20 Tuxedo UFSD 
Median: $91,872

#17 Arlington CSD 
Median: $93,208

#16 Cornwall CSD 
Median: $93,394.50

#15 New Paltz CSD 
Median: $93,590

#14 Haldane CSD
Median: $93,603

#13 Ellenville CSD 
Median: $93,823

#12 Marlboro CSD 
Median: $95,302

#11 Valley Central SD 
Median: $98,319

#10 Garrison UFSD
Median: $98,699

#9 Spackenkill UFSD 
Median: $100,418

#8 Onteora CSD
Median: $102,336

#7 Warwick Valley CSD 
Median: $106,679.5

#6 Putnam Valley CSD 
Median: $107,688

#5 Monroe-Woodbury Central School District 
Median: $111,184

#4 Lakeland CSD 
Median: $112,645

#3 Mahopac CSD 
Median: $114,952

#2 Brewster CSD 
Median: $123,290

#1 Carmel CSD 
Median: $131,689