The state of California had the 5th largest economy in the world by 2017 .
If it were a country , California would be the 5th largest economy in the world , and the 36th most populous as of 2017 .
California