The legal cannabis sector is expected to generate $40 billion and more than 400,000 jobs by 2021 in the United States, according to a study released Tuesday.

The estimate by consulting firm Arcview includes direct purchases by consumers of $20.8 billion and indirect revenue for growers and various subcontractors as well as money spent with businesses not affiliated with the sector, such as supermarkets.

The projection would represent a rise of 150 percent on the $16 billion revenue recorded in 2017, according to the study, released the day after recreational use of marijuana became legal in California.