Due to improvements in the technology of laser diodes, nowadays they have become an integral part of most physics and engineering undergraduate courses. Laser diodes, which generally have low coherence, are extensively used in various educational experiments due to their compactness, ease of operation and handling, as well as their cost-effectiveness. Thus, knowledge about the coherence length of beams from these laser diodes becomes important when designing experiments using these as light sources. Generally, students find it difficult to measure coherence length with most of the existing techniques. In the present work an experimental arrangement using holographic optics is designed and demonstrated to measure the temporal coherence of a laser diode beam in a compact and easy-to-align manner. The proposed scheme is particularly suitable to measure short coherence lengths. The temporal coherence of a laser diode is measured to be 2.1 ± 0.02 mm, by varying separation between two holographic optical components. The results obtained are experimentally compared with results from a Michelson interferometer.