To select the proper stove pipe size take the inside diameter measurement from your flue outlet on the woodstove itself.
Never decrease the size of your flue pipe due to dimensional restrictions.