Diagnosis typically involves blood tests, including a complete blood count (CBC) to assess the size and number of red blood cells, and a blood smear to observe the presence of megaloblasts. Additional tests, such as serum vitamin B12 and folate levels, can help determine deficiencies leading to the condition.