These are very strong neodymium magnets. They will work well when in direct contact with each other or magnetically attractive (ferrous) metal. When there is a gap in between the magnets the attachment strength will be less.
Note: Keep away from young children. Magnets are dangerous if swallowed.