Despite many algorithms for embedding graphs on unbounded grids, only a few results on embedding graphs on restricted grids have been published. In this paper, we study the problem of embedding paths and cycles on solid grid graphs. We show that a cycle of length k is unit-length embeddable on a solid grid graph G if k is an even integer between four and the length of the longest cycle of G. In addition, our result shows that a path of length k is unit-length embeddable on G, between its two given vertices s and t, if $$k\le L$$k≤L and $$k\equiv L (\mathrm{mod}\ 2)$$kźL(mod2), in which L is the length of the longest path between s and t. Our presented two algorithms show that such embeddings can be found in linear time for cycles and quadratic time for paths, with respect to the size of graph G. In the case of rectangular grid graphs, the running time of the algorithms can be improved to O(k) and O$$(k^2)$$(k2), respectively. In addition, we extend our results to $$m\times n\times o$$m×n×o 3D grids. A application of our result is in the interconnection network mapping in parallel processing.