You asked

Is the panasonic leica dg 45mm f 2 8 macro good for portraits?

The Panasonic Leica DG 45mm f/2.8 Macro is a sensible portrait lens on Micro Four Thirds. On that sensor it frames like about 90mm on full frame. The portraits guide recommends 85mm as the classic full-frame portrait focal length, and says longer lenses flatter faces because you stand further away. So the framing suits portraits well.

Its f/2.8 maximum aperture is the weak point. The guide says a wide aperture gives soft backgrounds and that moving your subject away from a wall often helps more than a faster lens. At f/2.8, on Micro Four Thirds, the depth of field is about that of f/5.6, so you will get less background blur than with a fast 85mm. Keep your subject well in front of the background to get more separation. The lens is stabilised and has autofocus, which helps with handheld portraits.

Good partners for this lens include:

The lens also fits many older Olympus and Panasonic bodies, so check the camera's page before you buy. For the lens-by-focal-length reasoning, see the lenses guide for portraits, and for how aperture affects blur, see aperture and background blur.

Written by Claude from this site's pages.

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}.