The following summarizes our change in cash and cash equivalents for the periods presented: Year Ended December 31, (in thousands) 2022 2021 2020 Net cash from operating activities $ 744,658 $ 539,902 $ 304,812 Net cash from investing activities (309,333) (384,047) (125,360) Net cash from financing activities (429,368) (167,887) (158,958) Effect of exchange rate changes on cash and cash equivalents (882) (206) 1398 Net change in cash and cash equivalents $ 5,075 $ (12,238) $ 21,892 Comparison of the Years Ended December 31, 2022 and 2021 and December 31, 2021 and 2020 Cash Flows from operating activities Cash provided by operating activities for the year ended December 31, 2022 was $744.7 million as compared to $539.9 million for the year ended December 31, 2021, an increase of $204.8 million, or 38%.
The following summarizes our change in cash and cash equivalents for the periods presented: Year Ended December 31, (in thousands) 2023 2022 2021 Net cash from operating activities $ 761,240 $ 744,658 $ 539,902 Net cash from investing activities (350,003) (309,333) (384,047) Net cash from financing activities (418,935) (429,368) (167,887) Effect of exchange rate changes on cash and cash equivalents 882 (882) (206) Net change in cash and cash equivalents $ (6,816) $ 5,075 $ (12,238) Comparison of the Years Ended December 31, 2023 and 2022 and December 31, 2022 and 2021 Cash Flows from operating activities Cash provided by operating activities for the year ended December 31, 2023 was $761.2 million as compared to $744.7 million for the year ended December 31, 2022, an increase of $16.6 million, or 2%.
Years Ended December 31, 2022 vs. 2021 Change 2021 vs 2020 Change 2022 2021 2020 Revenues: Leasing and services revenue: Leasing $ 1,621,690 $ 1,252,490 $ 936,458 $ 369,200 $ 316,032 Delivery and installation 429,152 321,129 250,734 108,023 70,395 Sales revenue: New units 40,338 46,993 48,834 (6,655) (1,841) Rental units 51,443 52,368 36,965 (925) 15,403 Total revenues 2,142,623 1,672,980 1,272,991 469,643 399,989 Costs: Costs of leasing and services: Leasing 376,868 282,576 214,367 94,292 68,209 Delivery and installation 322,636 267,533 202,734 55,103 64,799 Costs of sales: New units 24,011 31,348 31,799 (7,337) (451) Rental units 26,907 28,030 23,474 (1,123) 4,556 Depreciation of rental equipment 256,719 218,790 192,190 37,929 26,600 Gross profit 1,135,482 844,703 608,427 290,779 236,276 Expenses: Selling, general and administrative 567,214 464,278 338,395 102,936 125,883 Transaction costs 25 1,375 64,053 (1,350) (62,678) Other depreciation and amortization 62,380 61,777 35,181 603 26,596 Lease impairment expense and other related charges 254 2,888 4,876 (2,634) (1,988) Restructuring costs (86) 11,866 6,109 (11,952) 5,757 Currency losses (gains), net 886 427 (257) 459 684 Other (income) expense, net (6,673) 1,715 (1,722) (8,388) 3,437 Operating income 511,482 300,377 161,792 211,105 138,585 Interest expense 146,278 116,358 119,319 29,920 (2,961) Fair value loss (gain) on common stock warrant liabilities — 26,597 (3,461) (26,597) 30,058 Loss on extinguishment of debt — 5,999 42,401 (5,999) (36,402) Income from continuing operations before income tax 365,204 151,423 3,533 213,781 147,890 Income tax expense (benefit) from continuing operations 88,863 36,528 (56,040) 52,335 92,568 Income from continuing operations 276,341 114,895 59,573 161,446 55,322 Income from continuing operations attributable to non-controlling interest, net of tax — — 1,213 — (1,213) Income from continuing operations attributable to WillScot Mobile Mini common shareholders $ 276,341 $ 114,895 $ 58,360 $ 161,446 $ 56,535 41 Cash Flow Data: Net cash from operating activities $ 744,658 $ 539,902 $ 304,812 $ 204,756 $ 235,090 Net cash from investing activities $ (309,333) $ (384,047) $ (125,360) $ 74,714 $ (258,687) Net cash from financing activities $ (429,368) $ (167,887) $ (158,958) $ (261,481) $ (8,929) Other Financial Data: Adjusted EBITDA from continuing operations (a) $ 883,874 $ 649,604 $ 494,642 $ 234,270 $ 154,962 Adjusted EBITDA from discontinued operations (a) 85,750 90,789 35,665 (5,039) 55,124 Adjusted EBITDA from continuing and discontinued operations (a) $ 969,624 $ 740,393 $ 530,307 $ 229,231 $ 210,086 Free Cash Flow (a) $ 330,334 $ 303,027 $ 162,279 $ 27,307 $ 140,748 Adjusted Gross Profit (a) $ 1,392,201 $ 1,063,493 $ 800,617 $ 328,708 $ 262,876 Net CAPEX (a) $ 414,324 $ 236,875 $ 142,533 $ 177,449 $ 94,342 Balance Sheet Data (end of year): Cash and cash equivalents $ 7,390 $ 6,393 $ 5,635 $ 997 $ 758 Rental equipment, net $ 3,077,287 $ 2,777,800 $ 2,651,720 $ 299,487 $ 126,080 Total assets $ 5,827,651 $ 5,773,599 $ 5,572,205 $ 54,052 $ 201,394 Total debt, excluding current portion $ 3,063,042 $ 2,671,831 $ 2,435,199 $ 391,211 $ 236,632 Total shareholders’ equity $ 1,565,300 $ 1,996,763 $ 2,063,873 $ (431,463) $ (67,110) (a) WillScot Mobile Mini presen ts Adjusted EBITDA, F ree Cash Flow, Adjusted Gross Profit and Net CAPEX, which are measurements not calculated in accordance with GAAP and are defined below in the section "Reconciliation of non-GAAP Financial Measures," because they are key metrics used by management to assess financial performance.
Years Ended December 31, 2023 vs. 2022 Change 2022 vs 2021 Change 2023 2022 2021 Revenues: Leasing and services revenue: Leasing $ 1,833,935 $ 1,621,690 $ 1,252,490 $ 212,245 $ 369,200 Delivery and installation 437,179 429,152 321,129 8,027 108,023 Sales revenue: New units 48,129 40,338 46,993 7,791 (6,655) Rental units 45,524 51,443 52,368 (5,919) (925) Total revenues 2,364,767 2,142,623 1,672,980 222,144 469,643 Costs: Costs of leasing and services: Leasing 398,467 376,868 282,576 21,599 94,292 Delivery and installation 317,117 322,636 267,533 (5,519) 55,103 Costs of sales: New units 26,439 24,011 31,348 2,428 (7,337) Rental units 23,141 26,907 28,030 (3,766) (1,123) Depreciation of rental equipment 265,733 256,719 218,790 9,014 37,929 Gross profit 1,333,870 1,135,482 844,703 198,388 290,779 Expenses: Selling, general and administrative 596,090 567,407 480,407 28,683 87,000 Other depreciation and amortization 72,921 62,380 61,777 10,541 603 Currency losses, net 6,754 886 427 5,868 459 Other (income) expense, net (15,354) (6,673) 1,715 (8,681) (8,388) Operating income 673,459 511,482 300,377 161,977 211,105 Interest expense 205,040 146,278 116,358 58,762 29,920 Fair value loss on common stock warrant liabilities — — 26,597 — (26,597) Loss on extinguishment of debt — — 5,999 — (5,999) Income from continuing operations before income tax 468,419 365,204 151,423 103,215 213,781 Income tax expense from continuing operations 126,575 88,863 36,528 37,712 52,335 Income from continuing operations 341,844 276,341 114,895 65,503 161,446 Discontinued operations: Income from discontinued operations before income tax 4,003 63,468 58,267 (59,465) 5,201 Income tax expense from discontinued operations 45,468 35,725 13,018 9,743 22,707 Gain on sale of discontinued operations 176,078 35,456 — 140,622 35,456 Income from discontinued operations 134,613 63,199 45,249 71,414 17,950 Net income $ 476,457 $ 339,540 $ 160,144 $ 136,917 $ 179,396 44 Cash Flow Data: Net cash from operating activities $ 761,240 $ 744,658 $ 539,902 $ 16,582 $ 204,756 Net cash from investing activities $ (350,003) $ (309,333) $ (384,047) $ (40,670) $ 74,714 Net cash from financing activities $ (418,935) $ (429,368) $ (167,887) $ 10,433 $ (261,481) Other Financial Data: Adjusted EBITDA from continuing operations (a) $ 1,061,465 $ 883,874 $ 649,604 $ 177,591 $ 234,270 Adjusted EBITDA from discontinued operations (a) 4,124 85,750 90,789 (81,626) (5,039) Adjusted EBITDA from continuing and discontinued operations (a) $ 1,065,589 $ 969,624 $ 740,393 $ 95,965 $ 229,231 Free Cash Flow (a) $ 576,589 $ 330,334 $ 303,027 $ 246,255 $ 27,307 Adjusted Gross Profit (a) $ 1,599,603 $ 1,392,201 $ 1,063,493 $ 207,402 $ 328,708 Net CAPEX (a) $ 184,651 $ 414,324 $ 236,875 $ (229,673) $ 177,449 Balance Sheet Data (end of year): Cash and cash equivalents $ 10,958 $ 7,390 $ 6,393 $ 3,568 $ 997 Rental equipment, net $ 3,381,315 $ 3,077,287 $ 2,777,800 $ 304,028 $ 299,487 Total assets $ 6,137,915 $ 5,827,651 $ 5,773,599 $ 310,264 $ 54,052 Long-term debt $ 3,538,516 $ 3,063,042 $ 2,671,831 $ 475,474 $ 391,211 Total shareholders’ equity $ 1,261,250 $ 1,565,300 $ 1,996,763 $ (304,050) $ (431,463) (a) WillScot Mobile Mini presen ts Adjusted EBITDA, F ree Cash Flow, Adjusted Gross Profit and Net CAPEX, which are measurements not calculated in accordance with GAAP and are defined below in the section "Reconciliation of non-GAAP Financial Measures," because they are key metrics used by management to assess financial performance.