As nouns the difference between octagon and square
is that
octagon is octagon while
square is (geometry) a polygon with four sides of equal length and four angles of 90 degrees; a regular quadrilateral whose angles are all 90 degrees.
As an adjective square is
shaped like a (the polygon).
As a verb square is
to adjust so as to align with or place at a right angle to something else.