You asked
Which lens for portraits on the canon eos 4000d?
For portraits on the Canon EOS 4000D, the lens matters more than the body, and the 4000D's 1.6x crop means a 50mm lens frames like 80mm. Three lenses from its catalogue page suit portraits well.
The Sigma 50-100mm f/1.8 DC HSM Art is the portrait specialist. At f/1.8 it blurs backgrounds and separates the subject, and its 80-160mm full-frame equivalent gives tight head-and-shoulders framing. It is less useful in small rooms, where you can't step back far enough.
The Sigma 18-35mm f/1.8 DC HSM Art is the more flexible choice. Its 29-56mm equivalent covers everything from environmental portraits to half-body shots, and f/1.8 works in dim rooms and window light. It gives up the extra reach for close headshots.
The Canon EF 24-70mm f/2.8L II USM is the versatile, premium option. It covers portraits, travel and events, and f/2.8 is fast enough for most indoor work. It is larger and costlier than the Sigma primes, and it is not as bright.
If you are on a tight budget, the Canon EF-S 18-55mm f/3.5-5.6 IS STM is a usable start, but its slow aperture makes backgrounds less soft and it struggles in low light.
Whichever lens you choose, light beats gear: place your subject facing a window or in open shade, and expose for the face. For a broader starting point, see your first lenses.
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}.