Area of octagon =  2s2(1+√2) = 4sa. where s is side of octagon and a is apothem.