To calculate the amount of landscaping rocks you need in cubic yards, first measure the length and width of the area you're working with. Then, multiply those numbers by the desired depth of coverage in feet. Finally, divide that total by 27 to convert it to cubic yards.