By Ben Axelson | baxelson@nyup.com

Every school district across the country has been graded based on the quality of their teaching staff to create a new 2018 nationwide ranking of the best teachers by Niche.com.

The ranking measures student-teacher ratio, teacher absenteeism, overall academic grade of the district, teacher salaries and other factors to determine each school's placement.

Take a look below to see the top 25 school districts with the best teachers in Upstate New York. Click the name of any district for more details.

Full methodology

Don't Edit

#25 New Paltz Central School District (Ulster County)

New York State: #95

Last year: #65

National: #727

Teachers: A+

Overall: A

Average salary: $87,146

Students to teachers: 12:1

Don't Edit

#24 Honeoye Falls-Lima Central School District (Monroe County)

New York State: #90

Last year: #70

National: #653

Teachers: A+

Overall: A

Average salary: $68,880

Students to teachers: 13:1

Don't Edit

#23 Fredonia Central School District (Chautauqua County)

New York State: #89

Last year: unranked

National: #644

Teachers: A+

Overall: A-

Average salary: $71,158

Students to teachers: 12:1

Don't Edit

#22 Owego-Apalachin Central School District (Tioga County)

New York State: #81

Last year: unranked

National: #578

Teachers: A+

Overall: B

Average salary: $71,682

Students to teachers: 14:1

Don't Edit

Don't Edit

#21 Hilton Central School District (Monroe County)

New York State: #74

Last year: unranked

National: #506

Teachers: A+

Overall: A-

Average salary: $65,742

Students to teachers: 13:1

Don't Edit

#20 Baldwinsville Central School District (Onondaga County)

New York State: #72

Last year: #100

National: #490

Teachers: A+

Overall: A-

Average salary: $76,852

Students to teachers: 15:1

Don't Edit

#19 Lansing Central School District (Tompkins County)

New York State: #68

Last year: unranked

National: #453

Teachers: A+

Overall: A

Average salary: $69,171

Students to teachers: 11:1

Don't Edit

#18 North Colonie Central School District (Albany County)

New York State: #65

Last year: #77

National: #430

Teachers: A+

Overall: A

Average salary: $81,122

Students to teachers: 13:1

Don't Edit

#17 Clarence Central School District (Erie County)

New York State: #59

Last year: #67

National: #356

Teachers: A+

Overall: A

Average salary: $75,259

Students to teachers: 15:1

Don't Edit

Don't Edit

Welcome Back Students! We are looking forward to a great school year! Students walking toward their school entrance. Posted by Orchard Park Central School District on Wednesday, September 6, 2017

#16 Orchard Park Central School District (Erie County)

New York State: #57

Last year: #93

National: #325

Teachers: A+

Overall: A

Average salary: $74,679

Students to teachers: 13:1

Don't Edit

#15 Arlington Central School District (Dutchess County)

New York State: #55

Last year: unranked

National: #318

Teachers: A+

Overall: A

Average salary: $94,918

Students to teachers: 14:1

Don't Edit

#14 West Irondequoit Central School District (Monroe County)

New York State: #54

Last year: unranked

National: #317

Teachers: A+

Overall: A

Average salary: $65,957

Students to teachers: 14:1

Don't Edit

#13 Bethlehem Central School District (Albany County)

New York State: #52

Last year: #61

National: #298

Teachers: A+

Overall: A

Average salary: $80,219

Students to teachers: 15:1

Don't Edit

#12 Skaneateles Central School District (Onondaga County)

New York State: #49

Last year: #54

National: #285

Teachers: A+

Overall: A

Average salary: $72,210

Students to teachers: 11:1

Don't Edit

Don't Edit

#11 East Aurora Union Free School District (Erie County)

New York State: #47

Last year: unranked

National: #276

Teachers: A+

Overall: A-

Average salary: $70,296

Students to teachers: 15:1

Don't Edit

#10 Hamilton Central School District (Madison County)

New York State: #39

Last year: unranked

National: #231

Teachers: A+

Overall: A

Average salary: $63,118

Students to teachers: 11:1

Don't Edit

#9 Williamsville Central School District (Erie County)

New York State: #38

Last year: #46

National: #211

Teachers: A+

Overall: A+

Average salary: $82,565

Students to teachers: 14:1

Don't Edit

#8 Fairport Central School District (Monroe County)

New York State: #37

Last year: #89

National: #208

Teachers: A+

Overall: A

Average salary: $67,277

Students to teachers: 12:1

Don't Edit

#7 Rhinebeck Central School District (Dutchess County)

New York State: #33

Last year: #78

National: #188

Teachers: A+

Overall: A-

Average salary: $100,716

Students to teachers: 12:1

Don't Edit

Don't Edit

Gloria Wright for syracuse.com

#6 Fayetteville-Manlius Central School District (Onondaga County)

New York State: #30

Last year: #37

National: #145

Teachers: A+

Overall: A+

Average salary: $73,292

Students to teachers: 13:1

Don't Edit

#5 New Hartford Central School District (Oneida County)

New York State: #28

Last year: #52

National: #130

Teachers: A+

Overall: A+

Average salary: $69,505

Students to teachers: 13:1

Don't Edit

#4 Niskayuna Central School District (Schenectady County)

New York State: #27

Last year: #29

National: #129

Teachers: A+

Overall: A+

Average salary: $78,067

Students to teachers: 14:1

Don't Edit

#3 Penfield Central School District (Monroe County)

New York State: #24

Last year: #51

National: #112

Teachers: A+

Overall: A+

Average salary: $68,013

Students to teachers: 12:1

Don't Edit

#2 Brighton Central School District (Monroe County)

New York State: #12

Last year: #32

National: #49

Teachers: A+

Overall: A+

Average salary: $64,151

Students to teachers: 11:1

Don't Edit

Don't Edit

#1 Pittsford Central School District (Monroe County)

New York State: #10

Last year: #8

National: #45

Teachers: A+

Overall: A+

Average salary: $72,136

Students to teachers: 12:1

Don't Edit

READ MORE: The 51 Upstate NY school districts with the best SAT scores

New York students' combined reading and math SAT score in 2016 was 990. See which districts were ahead of the curve.