You asked

Which fast prime works for indoor portraits on the canon eos 4000d?

For indoor portraits on the Canon EOS 4000D, the lens matters more than the body, and this camera's APS-C sensor gives a 1.6 crop. The guide's starting point is a fast standard prime around 33-35mm on APS-C. The closest fits here are 24mm lenses, which frame like 38mm on this camera. That's a little wider than ideal for close headshots, but it works well in a room with some space around your subject.

The Sigma 24mm f/1.4 DG HSM Art is the best pick for dim rooms. Its f/1.4 aperture gathers the most light and blurs the background most, which suits faces in ordinary indoor light. It's large and demands care with focus wide open. The Canon EF 24mm f/1.4L II USM gives you the same focal length and speed in Canon's own mount, if you prefer a Canon lens.

If you want flexibility, the Sigma 18-35mm f/1.8 DC HSM Art covers about 29-56mm equivalent at f/1.8. That range includes the 50mm-ish look that suits portraits, so you can compose without moving much.

For a lighter, cheaper option, the Canon EF-S 24mm f/2.8 STM is slower, so it needs more light. Expect to use it near windows or with a brighter room.

The 4000D has no in-body stabilisation, so the fast lenses also help keep shutter speeds up indoors. For more on lens choice for people, see the portraits page. Check each lens page for current prices before you buy.

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