Break a baked bakpia in two and the browned outside gives way to thin layers of wheat pastry, wrapped around a dense, sweet center of mung beans. These small, flattened rounds come from Yogyakarta, where the sweet filling is enclosed in a wheat shell and baked. The shell is layered with oil and margarine and stays thin, while the filling is smooth and sweet, and that contrast is what you're baking for.
Bakpia Pathok and Its Roots in Yogyakarta
Bakpia comes from both Chinese and Javanese food culture. Its name traces back to the Hokkien Tou Luk Pia, and early versions used meat and pork fat. In Yogyakarta those were adapted, and mung bean filling took their place.
The name "Pathok" points to Pathuk, an area of Yogyakarta known for household producers and shops identified by their numbers. Demand there rises during the holidays. Yogyakarta bakpia now comes in several filling and crust styles. Black bean, chocolate, cheese and fruit fillings are all common, and some modern versions with chocolate filling are finished in a pan. For more from the same country, see our guide to Indonesia.
Ingredients: Filling, Main Dough and Layer Paste

Sdm is sendok makan, the Indonesian tablespoon. Sdt is sendok teh, the Indonesian teaspoon.
Choosing Ingredients and Substitutes for Bakpia
The filling is made from peeled mung beans, coconut milk, pandan and two sugars. Some of these swap more easily than others.
| Ingredient | Closest option | What changes |
|---|---|---|
| Peeled mung beans | No direct substitute | Skin-on mung beans change the color and texture |
| Coconut milk | Unsweetened canned or carton coconut milk | Thickness varies by brand, so watch how the filling cooks down |
| Palm sugar | Kokuto (Japanese dark brown sugar) | The flavor differs from gula merah |
| Pandan leaf | Leave it out | The filling loses that aroma |
| Low-protein flour | Cake flour | Close, but protein levels differ between products |
| High-protein flour | Bread flour | Close, but protein levels differ between products |
If you use a dairy product in place of the coconut milk, you lose the coconut flavor. Plain white sugar instead of palm sugar gives a filling without palm sugar's depth and color, so either swap gives you a noticeably different bakpia.
Wheat is the main allergen to watch for here. Check the labels on margarine and coconut products for milk, soy and other allergens, since these vary by product. Watch for cross-contact too.
Equipment
- Steamer
- Saucepan
- Wooden spatula
- Mixing bowls
- Small separate bowl for the layer paste
- Shallow bowl for the oil soak
- Kitchen scale
- Oven and a plain metal baking tray
Judging Doneness and Fixing Common Bakpia Problems

A finished bakpia is browned on the outside, with closed seams and a filling that holds its shape when you break one open. If yours don't look like that, the table below covers the usual causes.
| Problem | Likely cause | What to do |
|---|---|---|
| The filling runs or won't hold a ball | It still has too much moisture | Cook it down further until thick and cohesive. Don't add flour |
| The layers don't show | The layer paste went on unevenly or too thickly | Spread the paste thin and even on the next batch |
| The dough tears | It was stretched too quickly | Flatten and wrap more gently, without pulling hard |
| The color is uneven | Your oven heats unevenly | Turn the pastries so both sides color, and extend the time little by little if needed |
The 400°F (200°C) and 15–20 minutes are set for a bakpia oven. In a home oven, start with these times and go by the color.
The main dough calls for 1/2 sdm salt. That is a lot, so measure it carefully.
Bakpia Variations
A home oven will color the pastries differently from a dedicated bakpia oven, and the timing will differ too. You can also change the filling's texture: leave some of the bean grains whole and you get a more rustic bite than a smooth paste gives.
Frequently Asked Questions
Are bakpia Pathok and bakpia Pathuk different pastries?
No, they're the same pastry. The two names are just spelling variants.
How many pastries does this make?
Each dough portion is about 10 g, so count the portions as you shape them.














