∵{an}是等差数列,a3+2a5+a7=8,∴由等差数列的性质可得:a3+a7=2a5,又a1+a9=2a5,∴4a5=8,∴2a5=4,又a1+a9=2a5,∴该数列前9项的和S9= (a1+a9)×9 2 =9a5=18.故答案为:18.