It depends on the span of the 2x’s. I’m in the residential architectural design/build biz.
I assume you want to install a ceiling below the floor joists above and finish with 1/2” drywall. A ceiling without any storage load should be designed to support 15 LB per ft total load, (dead and live). Two layers of drywall will increase the span weight. Keep that in mind.
In general:
2x4 SPF #2 (standard stud grade lumber) can ‘free’ span about 10’-9” @ 16” o.c. (Single layer drywall).
2x6 SPF #2 can ‘free’ span about 16’-11” at 16” o.c.
Now, you can also secure the 2x ceiling joist to the floor joists above to help ‘reduce’ the overall span weight, but utilize the similar spans as above. In other words, if you want to span 20’ overall, then provide mid-span support from the floor joists above, making the effective span 10’.
Now, here is the deal, buying 2x4’s longer than plate stock, (14’ lengths), will not be easy to find, at all. Even good 2x6’s longer than 18’ will not be easy to find.
Feel free to contact me via message if you need more help.