Either the mattress is too small or the bed is too large, but the platform bed has about 3 inches gap from the edge of the mattress to the edge of the bed.  Mattress is comfortable.