The length of the longest diagonal in an octagon = s*√(4 + 2√2). Where s is the side of the octagon.