You asked

Which lens for the panasonic lumix s5 gives the most working distance for macro flower shots?

For the most working distance, look at the longest-reaching macro lenses on the Panasonic Lumix S5 page. The guide's reasoning is simple: a longer focal length keeps you further from the subject, the same logic it uses for portraits. Short macro lenses such as the Laowa 15mm 0.5X or the Laowa 25mm 2.5-5X need you very close to the flower. The guide's material doesn't give working distances, so check each lens page for that figure before buying.

Three picks from the S5 list suit flower macro:

The S5 is a full-frame body, so macro depth of field is thin. Sensor sizes explains that trade-off. Each of these lenses fits the S5's L-Mount.

Written by Claude from this site's pages.

The answer changes if

Ask next

From these pages

This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.