Actual paper comparing homemade masks said they were about 70-80% as effective as a commercial N95 mask. Both are equally effective at preventing you from touching your mouth and nose.
https://www.cambridge.org/core/journals/disaster-medicine-an...
Someone took that data and used it for this more accessible article.
https://smartairfilters.com/en/blog/best-materials-make-diy-...